question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Description

Rule ID 951260 is doing lots of false positives, it is quite easy to trigger it. It has two conditions:

SecRule TX:sql_error_match "@eq 1" \
SecRule RESPONSE_BODY "@rx (?i)(?:Sybase message:|Warning.*sybase.*|Sybase.*Server message.*)" \

So, if response contains anything from file sql-errors.data AND contains at least one phrase which match these regexpes:

Sybase message:
Warning.*sybase.*
Sybase.*Server message.*

If you look into sql-errors.data, for example these phrases are found:

sybase
Warning
Sybase message
Sybase message:
Server message

So, in lots of cases, the rule acts as if it has only one of the conditions above. I believe one of these should be done:

  • remove rule 951260
  • remove phrases above from sql-errors.data (maybe some more)

Your Environment

  • CRS version (e.g., v3.2.0): 3.3.0
  • Paranoia level setting: PL1
  • ModSecurity version (e.g., 2.9.3): 2.9.3
  • Web Server and version (e.g., apache 2.4.41): 2.4
  • Operating System and version: Debian Buster

Confirmation

[x] I have removed any personal data (email addresses, IP addresses, passwords, domain names) from any logs posted.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
lifeformscommented, Nov 15, 2021

It would be awesome if you could do it @azurit , as said I am still swamped and cannot be as active as I would like.

1reaction
lifeformscommented, May 19, 2021

@azurit Thanks, forgot about this one. I will make time for it in the weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OWASP Standard Rules – Kemp Support
Rule Set Name Rule Set Identifier Associated Rules method‑enforcement 911 911100 scanner‑detection 913 913100, 913101, 913102, 913110, 913120 application‑attack‑lfi 930 930100, 930110, 930120, 930130
Read more >
Brown v. Harms, No. 951260 - Virginia - Case Law - VLEX 894156697
The parties have agreed that a pension equalization shall proceed between the parties by way of the law of obligations (contracts ). A...
Read more >
What the Law Allows by Mary C. Gentile, Ph.D., CasePlace .org
Gentile, Ph.D., Mary C. and .org, CasePlace, What the Law Allows (December 2006). Available at SSRN: https://ssrn.com/abstract=951260 or ...
Read more >
951260-2520-AR-TP Datasheet & Application Note
Except where prohibited by law, 3M will not be liable for any indirect, special, incidental or consequential loss or damage arising from this...
Read more >
95-1260 - Utah State Tax Commission
Additional tax of $$$$$, penalties of $$$$$ and interest of approximately $$$$$ were assessed against Petitioner relating to his income tax for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found