usd-2019-0069 | Zen Cart / v1.5.6d

Advisory ID: usd-2019-0069
CVE Number: CVE-2020-6578
Affected Product: Zen Cart
Affected Version: v1.5.6d
Vulnerability Type: XSS
Security Risk: Medium
Vendor: Zen Cart
Vendor URL: https://www.zen-cart.com/
Vendor Status: fixed

Description

A reflected XSS attack (or non-persistent attack) occurs when a malicious script is reflected off of a web application to the victim’s browser. The attack is typically delivered via email or a web site and activated through a link, which sends a request to a website with a vulnerability that enables execution of malicious scripts. The main_page parameter is vulnerable to reflected XSS in the /includes/templates/template_default/common/tpl_main_page.php and the /includes/templates/responsive_classic/common/tpl_main_page.php files.

Proof of Concept (PoC)

It is possible to send one of the two following requests to inject HTML code into the application:

The following HTTP response shows the injected JavaScript payload that would cause an alert box to pop up.

The vulnerable code was located inside includes/templates/responsive_classic/common/tpl_main_page.php

Fix

All user supplied input should be encoded on delivery or before rendering to prevent the injection of HTML code.

Timeline

  • 2019-12-16 Vulnerability discovered by Gerbert Roitburd and Markus Schader
  • 2020-01-08 Initial contact with vendor
  • 2020-01-22 Vulnerability fixed by vendor
  • 2021-02-26 Security advisory released

Credits

This security vulnerability was discovered by Gerbert Roitburd and Markus Schader of usd AG.

ABOUT usd SECURITY ADVISORIES

In order to protect businesses against hackers and criminals, we always have to keep our skills and knowledge up to date. Thus, security research is just as important for our work as is building up a security community to promote the exchange of knowledge. After all, more security can only be achieved if many individuals take on the task.

Our CST Academy and our usd HeroLab are essential parts of our security mission. We share the knowledge we gain in our practical work and our research through training courses and publications. In this context, the usd HeroLab publishes a series of papers on new vulnerabilities and current security issues.

Always for the sake of our mission: “more security.”

to usd AG


In accordance with usd AG’s Responsible Disclosure Policy, all vendors have been notified of the existence of these vulnerabilities.

Disclaimer

The information provided in this security advisory is provided “as is” and without warranty of any kind. Details of this security advisory may be updated in order to provide as accurate information as possible.