SQLi using scientific notation not detected at PL1
See original GitHub issueDescription
New SQLi attack using scientific notation of numbers:
https://blog.h3xstream.com/2021/10/bypassing-modsecurity-waf.html
Author thinks libinjection should catch it, maybe better to catch it with regexp rules too.
We catch it just fine at PL2, but PL1 would be sweet.
curl localhost -d "foo=1.e(ascii 1.e(substring(1.e(select password from users limit 1 1.e,1 1.e) 1.e,1 1.e,1 1.e)1.e)1.e) = 70 or'1'='2"
Your Environment
- CRS version (e.g., v3.2.0): CRS 3.4/dev
- Paranoia level setting: PL1
- ModSecurity version (e.g., 2.9.3): 2.9.4
- Web Server and version (e.g., apache 2.4.41): Apache
- Operating System and version: Ubuntu
Confirmation
[X] I have removed any personal data (email addresses, IP addresses, passwords, domain names) from any logs posted.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
A MySQL bug that causes a misconfiguration in the WAF ...
The trick involves MySQL and MariaDB ignoring numeric literals represented in scientific notation format when used in an invalid context. This ...
Read more >mindhack03d/WAF-Rule-Scientific-Notation - GitHub
A Scientific Notation Bug in MySQL left AWS WAF Clients Vulnerable to SQL ... msg:'SQL Injection Attack Detected via Scientific Notation ...
Read more >Working with scientific notation in Netezza - sql - Stack Overflow
I have a table with data in scientific notation (string). How can I make this a usable figure in Netezza (not a string)?...
Read more >Precompiler Messages
Cause: An indicator variable used in a SQL statement was not declared in the Declare Section or its name is misspelled. Action: Add...
Read more >A Scientific Notation Bug in MySQL left AWS WAF Clients ...
This bug allows the SQL syntax to remain valid even though it should not be valid, confusing security defenses. Scientific notation, and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK. We’re catching this at PL2 as is. Catching it at PL1 would have been cool, but there is no pressing need (as we catch it at PL2).
We’re unsure of FPs and any systematic FP tests will only be available after CRS4. I am closing this now to get rid of the deadlock. And if this pops up again in the future we have the necessary discussion and the link to a PoC rule here.
@dune73 @lifeforms More than one year. Is this relevant, are we going to do something, or we close it?