Secunia Research Advisory

DokuWiki "ns" Cross-Site Scripting Vulnerability


======================================================================= 
 
                    Secunia Research 13/07/2012              

         - DokuWiki "ns" Cross-Site Scripting Vulnerability -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

====================================================================== 
1) Affected Software

* DokuWiki version 2012-01-25a.

NOTE: Prior versions may also be affected.

====================================================================== 
2) Severity 

Rating: Less critical
Impact: Cross-Site Scripting
Where:  From remote

====================================================================== 
3) Vendor's Description of Software 

"DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at 
creating documentation of any kind. It is targeted at developer teams, 
workgroups and small companies. It has a simple but powerful syntax 
which makes sure the datafiles remain readable outside the Wiki and 
eases the creation of structured texts. All data is stored in plain 
text files - no database is required."

Product Link:
http://www.dokuwiki.org

====================================================================== 
4) Description of Vulnerability

Secunia Research has discovered a vulnerability in DokuWiki, which can 
be exploited by malicious people to conduct cross-site scripting 
attacks.

Input passed to the "ns" POST parameter in lib/exe/ajax.php (when 
"call" is set to "medialist" and "do" is set to "media") is not 
properly sanitised within the "tpl_mediaFileList()" function in 
inc/template.php before being returned to the user. This can be 
exploited to execute arbitrary HTML and script code in a user's browser 
session in context of an affected site.

====================================================================== 
5) Solution 

Update to version 2012-01-25b.

====================================================================== 
6) Time Table 

07/07/2012 - Request for contact details.
07/07/2012 - Vendor response.
10/07/2012 - Vendor notified.
13/07/2002 - Vendor releases updates.
13/07/2012 - Public disclosure.

====================================================================== 
7) Credits 

Discovered by Secunia Research.

====================================================================== 
8) References

The Common Vulnerabilities and Exposures (CVE) project has assigned 
CVE-2012-0283 for the vulnerability.

====================================================================== 
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

https://www.flexera.com/advisories/business_solutions/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private 
individuals, who are interested in or concerned about IT-security.advisories/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the 
security and reliability of software in general:

https://www.flexera.com/about-us/secunia-research/advisories/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

https://www.flexera.com/corporate/jobs/

Secunia offers a FREE mailing list called Secunia Security Advisories:

https://www.flexera.com/advisories/mailing_lists/

====================================================================== 
10) Verification 

Please verify this advisory by visiting the Secunia website:
https://www.flexera.com/about-us/secunia-research/advisories/sr-2012-24.html

Complete list of vulnerability reports published by Secunia Research:
https://www.flexera.com/about-us/secunia-research/advisories/

======================================================================