-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[modsecurity.conf-recommended] align processing on request & response for json #3175
Comments
It highly depends on the rules. For instance, if you only checl for stack traces, there are very few chances to find some in JSON (compared to HTML). |
@marcstern I don't agree that we have few chances to find stack traces on JSON. Why do you thinks that ? It's really depending of backend. As exemple I do a quick test with an Java application based on quarkus by dropping a table to simulate an sql error and the response is on json. Header
An second test with a Node application => Header
Here we don't have the stack on the error, but it's really depending how error handler is implemented on the application. |
We should consider the potential impact on performance. Many web servers today serve APIs with JSON responses. These responses can be huge. While it's probably a good idea to turn the setting on, users should be made aware of the potential downside. |
Well,
I would say having enabled XML in the middle of 2010s might have been a good choice. Nowadays, probably it is not. This is something we have discussed in the CRS team about having a stripped down version of the rules supporting only json instead... |
I think this issue might be relevant in this context also: corazawaf/coraza#1086.
Adapting @YvesZelros's issue here:
What do you think?
The text was updated successfully, but these errors were encountered: