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

Type: remote

Family: CGI abuses

Published: 2011/02/22

Modified: 2018/06/13

Dependencies: 48204

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 7.5

Temporal Score: 6.2

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

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

CVSS v3.0

Base Score: 7.3

Temporal Score: 6.7

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

Temporal Vector: CVSS:3.0/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: 2009/01/21

Vulnerability Publication Date: 2009/01/21

Reference Information

CVE: CVE-2008-2384

BID: 33392

Secunia: 33627

CWE: 89