X7 Chat help/index.php help_file Parameter Local File Inclusion

medium Nessus Plugin ID 21312

Synopsis

The remote web server contains a PHP script that is affected by a local file include issue.

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 properly sanitize input to the 'help_file' parameter of the 'help/index.php' script before using it in a PHP 'include_once()' function. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker may be able to exploit this issue to view arbitrary files or to execute arbitrary PHP code on the remote host, subject to the privileges of the web server user id.

Solution

Upgrade to X7 Chat version 2.0.3 or later.

See Also

https://seclists.org/bugtraq/2006/May/27

http://x7chat.com/support_forum/index.php/topic,2143.0.html

Plugin Details

Severity: Medium

ID: 21312

File Name: x7chat_help_file_file_include.nasl

Version: 1.20

Type: remote

Family: CGI abuses

Published: 5/3/2006

Updated: 4/7/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.0

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

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

Vulnerability Information

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Vulnerability Publication Date: 5/2/2006

Reference Information

CVE: CVE-2006-2156

BID: 17777