OpenX ac.php bannerid Parameter SQL Injection

high Nessus Plugin ID 34373

Synopsis

The remote web server contains a PHP application that is prone to a SQL injection attack.

Description

The remote host is running OpenX (formerly Openads), an open source ad serving application written in PHP.

The installed version of OpenX does not validate user-supplied input to the 'bannerid' parameter of the 'www/delivery/ac.php' script before using it in database queries. Regardless of PHP's 'magic_quotes_gpc' setting, an unauthenticated, remote attacker can leverage this issue to manipulate SQL queries and, for example, uncover sensitive information from the application's database or possibly execute arbitrary PHP code.

Solution

Upgrade to OpenX version 2.4.9 / 2.6.2 or later.

See Also

http://www.openx.org/docs/2.4/release-notes/openx-2.4.9

http://www.openx.org/docs/2.6/release-notes/openx-2.6.2

https://www.securityfocus.com/archive/1/497111/30/0/threaded

Plugin Details

Severity: High

ID: 34373

File Name: openx_bannerid_sql_injection.nasl

Version: 1.19

Type: remote

Family: CGI abuses

Published: 10/9/2008

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

Vulnerability Information

CPE: cpe:/a:openx:openx

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Reference Information

CVE: CVE-2008-6163

BID: 31549

CWE: 89

SECUNIA: 32114