-
Notifications
You must be signed in to change notification settings - Fork 728
SQLi bypass detection: ticks and backticks #1335
Conversation
wow, now you give full throttle :-) |
Very welcome PR. Thanks @franbuehler. Unfortunately, Travis got the hickups:
|
awesome! I can't match anything on my logs with that regex, and this sounds good to me :D maybe it could be suitable for PL1? |
Thank you!! |
@franbuehler pls wait with moving to PL1 until i finished my tests tommorow. |
Any news here @emphazer? |
In an English text FP are possible:
That's why I added |
Hi, php may not need the tailing |
@spartantri we want to match base64 encoded stuff and don't care about whats inside. @franbuehler |
Adding "needs action" label. Either raise as requests, or explain why 25 is OK. Other than that this look like something we could merge. |
any updates here? |
…ters because of FP and add detection base64 encoded strings
…ters because of FP and add detection base64 encoded strings
Finally updated the rule and added a comment. |
@franbuehler i test this PR in production on several server. looks good so far |
Thank you, @emphazer. |
Thank you for the update. Almost ready to be merged. Raising the PL1/PL2 and FP question on slack before an eventual merge. |
If I remember correctly, I actually considered but removed the That said, I'm willing to see how much of a false positive problem actually occurs in practice. It's probably not so common! And backticks are now not only used in SQLi, code injection, but also in "XSS without parentheses" which is a niche form of XSS that we don't detect well yet. So I think the upside of detecting them is higher now. And if you have a site that accepts markdown, you will likely need to exclude those markdown endpoints from the CRS entirely anyway because of other false positives (keywords, other meta characters etc.). I'd like to try it at PL1. |
And merged at PL1 after waiting for additional comments on slack with regards to desired PL. Thank you for the PR @franbuehler. Most welcome. |
This PR resolves issue #1181 by adding a new rule 942510 at PL2 with severity CRITICAL.
Two ticks and backticks are detected.
Please have a look at issue #1181 for more information.
I am not sure if this new rule leads to false positives. I'm thankful for tests.