X7 Chat index.php day Parameter SQL Injection

high Nessus Plugin ID 29981

Synopsis

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

Description

The remote host is running X7 Chat, a web-based chat program written in PHP.

The version of X7 Chat installed on the remote host fails to sanitize input to the 'day' parameter of the 'index.php' script when 'page' is set to 'event' before using it in 'sources/info_box.php' to construct database queries. Regardless of PHP's 'magic_quotes_gpc' setting, an attacker may be able to exploit this issue to manipulate database queries to disclose sensitive information, bypass authentication, modify data, or even attack the underlying database.

Solution

Upgrade to X7 Chat 2.0.5.1 or later.

See Also

http://x7chat.com/support_forum/index.php?topic=3287.0

Plugin Details

Severity: High

ID: 29981

File Name: x7chat_day_sql_injection.nasl

Version: 1.17

Type: remote

Family: CGI abuses

Published: 1/15/2008

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

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

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Reference Information

CVE: CVE-2008-0278

BID: 27277

CWE: 89