-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Need to create a new request body processor for JSON data #407
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
Original reporter: rbarnett |
rbarnett: It would be good if we could figure out a method to add in the parser directly to modsec so that user could use a SecRule to use it like this - SecRule REQUEST_CONTENT_TYPE ^applicatin/json "nolog,pass,ctl:requestBodyProcessor=JSON" |
zimmerle: I've got Ulisses' patches workable on the current project trunk, and added some features. One important https://github.com/zimmerle/ModSecurity/tree/urma_json_parser (Browsing the tree there is also a branch created from the project mainline) It is working as was suggested in the ticket, illustrated below: SecRule REQUEST_HEADERS:Content-Type "application/json" By using this rule the JSON tags will be placed under the ARGS collection. There is also SecRule JSON "@contains duh" or even: SecRule JSON:csp-report.referrer "..." "..." This special version is available at: This last version demands more tests before release. The merge request was already sent for the |
Have a look here: #26 to get more information about the current status of this feature. |
Merged as cited in #26 |
MODSEC-253: Need to create a new request body processor/parser to handle JSON traffic.
See: https://www.modsecurity.org/tracker/browse/CORERULES-71
This parser should be able to parse JSON request bodies and then properly populate ARGS_NAMES and ARGS, etc...
The text was updated successfully, but these errors were encountered: