Mod_auth_mysql Multibyte Encoding SQL Injection

high Nessus Plugin ID 52050
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote host is running software that is vulnerable to a SQL injection attack.

Description

There is a SQL injection vulnerability in this installation of mod_auth_mysql that may allow an attacker access to restricted areas of a website. Successful attacks have only been demonstrated against sites with AuthMySQLCharacterSet set to big5, gbk, and sjis but other encodings may be affected.

Solution

Change to using a safe multibyte encoding (UTF-8), or patch mod_auth_mysql to use mysql_real_escape_string.

Plugin Details

Severity: High

ID: 52050

File Name: mod_auth_mysql_bypass.nasl

Version: 1.10

Type: remote

Family: CGI abuses

Published: 2/22/2011

Updated: 1/19/2021

Dependencies: apache_http_version.nasl

Risk Information

VPR

Risk Factor: Low

Score: 3.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

Temporal Vector: E:F/RL:OF/RC:ND

CVSS v3

Risk Factor: High

Base Score: 7.3

Temporal Score: 6.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: E:F/RL:O/RC:X

Vulnerability Information

CPE: cpe:/a:apache:http_server

Required KB Items: installed_sw/Apache

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/21/2009

Vulnerability Publication Date: 1/21/2009

Reference Information

CVE: CVE-2008-2384

BID: 33392

Secunia: 33627

CWE: 89