[MajorSecurity Advisory #56]moziloWiki - Directory Traversal, XSS and SessionFixationIssues
Details
=======
Product: moziloWiki
Security-Risk: High
Remote-Exploit: yes
Vendor-URL: http://www.mozilo.de/
Vendor-Status: informed
Advisory-Status: published
Credits
============
Discovered by: David Vieira-Kurz
http://www.majorsecurity.de
Affected Products:
----------------------------
moziloWiki 1.0.1 and prior
Original Advisory:
============
http://www.majorsecurity.de/index_2.php?major_rls=major_rls56
Introduction
============
moziloWiki is an easy to handle wiki system.
More Details
============
1. Directory Traversal:
----------------------
Affected files:
print.php -> page parameter
Acquiring access to known files outside of the web root and current directory
is possible through directory traversal techniques.
This is made possible through the use of "../../" in a HTTP request.
2. Cross Site Scripting:
----------------------
Affected files:
index.php -> action parameter
index.php -> page parameter
Affected parameters are not being properly sanitised before being returned to theuser. This can be exploited to execute arbitrary HTML and script code in a user'sbrowser session in context of an affected site.
3. session fixation:
---------------------
The "PHPSESSID" parameter can be set to a malicious and arbitrary value.
3.1 Description:
In a session fixation attack, the attacker fixes the user's session ID before theuser even logs into the target server. After a user's session ID has been fixed, theattacker will wait for them to login. Once the user does so, the attacker uses thepredefined session ID value to assume their online identity.
3.2 PoC:
============
http://localhost/mozilowiki/?PHPSESSID=15031988
4. Workaround:
================
Update to mozilowiki 1.0.2
History/Timeline
================
17.09.2008 discovery of the vulnerabilities
18.09.2008 additional tests with other versions
19.09.2008 contacted the vendor
20.09.2008 vendor confirmed vulnerabilities
27.09.2008 vendor released patch
29.09.2008 advisory is written
30.09.2008 advisory released
MajorSecurity
================
MajorSecurity is a German penetrationtesting and security research company whichfocuses on web application security. We offer professional penetrationtestings andreliable proof of concepts.
You will find more Information about MajorSecurity at
http://www.majorsecurity.de/penetrationstest/penetrationtest.php