Zen Cart password_forgotten.php admin_email Parameter SQL Injection

medium Nessus Plugin ID 20254

Synopsis

The remote web server has a PHP application that is affected by a SQL injection flaw.

Description

The installed version of Zen Cart does not validate input to the 'admin_email' parameter of the 'admin/password_forgotten.php' script before using it in a database query. Regardless of PHP's 'magic_quotes_gpc' setting, an attacker can leverage this issue to manipulate SQL queries, possibly gaining the ability to execute arbitrary PHP code on the remote host subject to the privileges of the web server user id.

Solution

Configure the database so it can not write to files in the web server's document directory.

See Also

http://retrogod.altervista.org/zencart_126d_xpl.html

Plugin Details

Severity: Medium

ID: 20254

File Name: zencart_admin_email_sql_injection.nasl

Version: 1.19

Type: remote

Family: CGI abuses

Published: 12/3/2005

Updated: 4/7/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 4.4

Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:zen-cart:zen_cart

Required KB Items: www/zencart

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 12/2/2005

Reference Information

CVE: CVE-2005-3996

BID: 15690