← Back to vulnerability index

XSS Vulnerability in Zen Cart

Dogn├Ždis Ref.: DGS-SEC-8

CVE Ref: CVE-2011-4547

Release Date: 2011/11/22

Discover Credits: CodeV - Code Analyzer

Bulletin Author(s): RPinto

Contact: [email protected]

Type: Cross Site Scripting

Level: Low (Low/High/Critical)

CVSS: 4 (AV:N/AC:H/Au:N/C:P/I:P/A:N)

Vulnerable Application: Zen Cart (ver. 1.3.9h)

Zen Cart is an online store management system. It is PHP-based, using a MySQL database and HTML components. Support is provided for numerous languages and currencies, and it is freely available under the GNU General Public License.


File: /includes/templates/template_default/templates/tpl_gv_send_default.php Vulnerable Argument(s): $_POST['message']

line 58: <div id="gvSendDefaultMessage" class="content"><?php echo stripslashes($_POST['message']); ?></div>

Proof(s) of Concept:
GET: https://<app_base>/index.php?main_page=gv_send&action=send
POST: message=</textarea><script>alert("XSS");</script><textarea>

The referred vulnerability could be exploited through a XSS (Cross-Site-Scripting) attack.
Ultimately, the attacker could take complete control of the victims web-browser.
In a successful attack, the malicious script would be executed with the authenticated user permissions.

Generally, by exploiting this kind of vulnerability, it might be possible to achieve possible attack vectors to various kinds of attacks such as:
- Session/Cookie theft
- Account Hijacking
- Identity theft
- Accessing confidential resources
- Accessing pay content
- Account Denial of service

Aiming a correct resolution of the identified vulnerability, the data obtained through the $_POST['message'] input argument should be properly sanitized for HTML and following ECMAS usage.

Official Solution:
At the moment, there is no official solution for the reported vulnerabilities.
This vulnerability will be solved in the version 1.5, which is, according to the developer, due for release shortly.

External References:

Download the Vulnerability Report (PDF)

← Back to vulnerability index