Rule 920300 false positive in Chrome for hyperlink with download attribute (also pdf viewer) · Issue #2001 · coreruleset/coreruleset · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not use ModSecurity myself, but one of our customers had 403 Forbidden for all downloads in Chrome (but not Firefox for instance) from our app when deployed in their production environment (everything's OK in their preprod, and in our own demo server), and I suspect ModSecurity here (haven't heard back from our customer yet whether they use it or not, and whether that's the culprit here).
Confirmation
[x] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.
The text was updated successfully, but these errors were encountered:
Sorry for the inconvenience and thank you for doing the writeup. 920300 is a misbehaving kid in our class.
920300 carries exceptions for AppleWebKit and Android already. So we might need to whitelist Chrome as well and I wonder if it's not time to abandon the rule alltogether. Or move it to paranoia level 3.
Out of curiosity: You are not running CRS yourself, but you support customers running CRS, even CRS in paranoia level 2 (this is a paranoia level 2 rule). I would expect too many false positives at PL 2 for somebody not being a professional CRS users. Great to hear it works out for you.
Description
Chrome doesn't include an
Accept
header in requests triggered by<a href=… download>
links: https://crbug.com/916983In some cases, Chrome's PDF Viewer doesn't send it either: https://crbug.com/1010917
This would trigger the 920300 rule AFAICT:
coreruleset/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf
Lines 520 to 524 in ac2a0d1
coreruleset/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf
Lines 1215 to 1248 in ac2a0d1
https://github.com/coreruleset/coreruleset/blob/ac2a0d15c5f2e3b4a142e0be18bc6974a5908837/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920300.yaml
Audit Logs / Triggered Rule Numbers
Your Environment
I do not use ModSecurity myself, but one of our customers had 403 Forbidden for all downloads in Chrome (but not Firefox for instance) from our app when deployed in their production environment (everything's OK in their preprod, and in our own demo server), and I suspect ModSecurity here (haven't heard back from our customer yet whether they use it or not, and whether that's the culprit here).
Confirmation
[x] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.
The text was updated successfully, but these errors were encountered: