Rule 920420: POST with Content-type application/octet-stream is not allowed #657
Comments
|
This can be easily added via the crs-seutp.conf file specifically ( https://github.com/SpiderLabs/owasp-modsecurity-crs/blob/v3.0/master/crs-setup.conf.example#L332 ). octet-stream is an interesting choice for consideration by default. It is essentially the lack of any other content-type usually. What is odd is that in this case the browser didn't pick application/pdf as the MIME type. Very strange behavior. |
|
What application was this generated by, just for my own information (if you can share) |
|
Something called 'Processwire', I think :) |
|
I am not sure that octet-stream is a good addition to the defaults. Maybe for Paranoia Level 1 it would be. But I really want to avoid it in higher PLs, namely PL3, certainly PL4. Maybe we could add a rule that triggers on the use of octet-stream in PL3. |
|
@dune73 there are some interesting aspects here... the first being that it is the default if no content-type can be determined. I don't know, it's not that common and the lack of knowing what the data is makes it suspicious also. |
|
It's really this "we do not know" about the frequency of this Content-Type. Maybe we wait for more reports before we add it to the default. |
|
Talked about this with @franbuehler. Here is our proposed resolution:
Feedback welcome. Open question: Is this a 3.0.1 thing, or should we wait for 3.1.0? |
|
Fix has been merged. Closing this issue here. #709 remains open for 3.1. Thank you for reporting @tomsommer and sorry for taking so long. |
|
I had the same issue with CRS3 and modsecV3 as Joomla administration was not working until I added POST. I think that POST should be allowed by default. |
|
@intelbg can you elaborate a bit more on what you mean? |
POST with Content-type application/octet-stream is not allowed by Rule 920420?
The text was updated successfully, but these errors were encountered: