-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MULTIPART_STRICT_ERROR False Positive 3.0.4 #2267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also the last field \x0aFL "] not printing a 0 or 1 is interesting/a bug i imagine, turns out it was set to 1(I think?) internally though cause when we pulled it out for an extra test to pass WAF checking, thats was what finally let strict validation rule pass w/out blocking the tx. |
Hi @jeremyjpj0916 , Those three lines that you highlight from the definition of rule 200003 in modsecurity.conf really only control log output, so removing them will not stop the false positives (i.e. removal would just omit the 'BQ 1' (etc.) from the log output). To stop the false positives, a couple of options that you could consider:
Some of the conditions checked within MULTIPART_STRICT_ERROR are RFC-compliant, but are (or were) unusual, and so, possibly suspicious. Reports from the community are useful in guiding whether we should revisit some aspects of the implementation, so thank you for reporting it. Thanks also for mentioning the 'FL' log output anomaly. Yes, it's probably a bug; I'll have a look into that. |
@martinhsv appreciate the prompt feedback. Yes we are indeed breaking out the rules individually and assigning them unique id's now(yeah we goofed just messing with the print statement originally hah) and commenting out the necessary ones to get this payload working. |
@martinhsv Hi! I work with @jeremyjpj0916
edit: |
That did the trick! Now the OWASP CRS has found a reason to block this request, but we're past the ModSecurity rules. Thank you for your help! |
Describe the bug
Trying to do the OAuth2.0 Client Credential grant type with Content-Type: multipart/form-data with a boundary. Sample below:
(Creds redacted)
POST https://gateway.company.com/auth/oauth2/token HTTP/1.1
Note this was produced by the SOAPUI REST client, so I would think it to be entirely valid
multipart/form-data with a boundary.
Logs and dumps
Any harm in commenting out these portions of the rules in the meantime???
Expected behavior
Plz don't block me 😄
The text was updated successfully, but these errors were encountered: