MyBB HTTP Header 'CLIENT-IP' Field SQLi

high Nessus Plugin ID 22055

Synopsis

The remote web server hosts a PHP application that is affected by a SQL injection vulnerability.

Description

The version of MyBB installed on the remote host is affected by a SQL injection vulnerability due to improper sanitization of user-supplied input to the 'CLIENT-IP' request header before using it in a database query when initiating a session in the inc/class_session.php script. A remote attacker can exploit this issue to manipulate SQL queries, resulting in the disclosure of sensitive information and modification of data.

Note that successful exploitation is possible regardless of PHP's settings.

Solution

Upgrade to MyBB version 1.1.6 or later

See Also

https://seclists.org/bugtraq/2006/Jul/252

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

https://community.mybb.com/showthread.php?tid=10555

Plugin Details

Severity: High

ID: 22055

File Name: mybb_client_ip_sql_injection.nasl

Version: 1.23

Type: remote

Family: CGI abuses

Published: 7/17/2006

Updated: 6/5/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.1

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

Vulnerability Information

CPE: cpe:/a:mybb:mybb

Required KB Items: www/PHP, installed_sw/MyBB

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/15/2006

Vulnerability Publication Date: 7/15/2006

Reference Information

CVE: CVE-2006-3775

BID: 18997