Mod_auth_mysql Multibyte Encoding SQL Injection

high Nessus Plugin ID 52050


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


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.


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.11

Type: remote

Family: CGI abuses

Published: 2/22/2011

Updated: 4/11/2022

Configuration: Enable thorough checks

Risk Information


Risk Factor: Low

Score: 3.4


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


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