# Exploit Title: OpenDocMan 126.96.36.199 Stored/Reflective XSS
# Date: 05/04/2013
# Exploit Author: drone (@dronesec)
# More Exploit Information:
# Vendor Homepage: http://www.opendocman.com/
# Software Link: http://sourceforge.net/projects/opendocman/files/opendocman/188.8.131.52/opendocman-184.108.40.206.zip/download
# Version: 220.127.116.11
About the Application:
OpenDocMan is a free, open source web-based PHP document management system (DMS) designed to comply with ISO 17025 and OIE standard for
document management. It features web based access, fine grained control of access to files, and automated install and upgrades.
OpenDocMan is vulnerable to stored XSS, allowing any user the ability to upload malicious scripts. When adding a new file, a user can enter a malicious Description or Comment field input. Insufficient sanitization allows the following XSS to slip by:
This value is then stored, and any user viewing it is affected. Admin's who are required to approve documents, or view them, are also affected. Stored XSS also exists when generating new Departments; by inserting a malicious Department name like above, arbitrary code can be remotely executed to visitors.
Reflective XSS exists in the error.php page. By submitting the following request, an alert is generated:
05/04/13 > Sent email to developers
05/04/13 > Confirmed. Version 18.104.22.168 released.