We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
It's not a bug report, just an information share we hope some folks would find usefull.
If you want catch REQBODY_PROCESSOR_ERROR against requestBodyProcessor=XML, your rules on phase 2 will be bypass.
You must catch it on phase 3+.
This will work on both requestBodyProcessor=JSON and requestBodyProcessor=XML :
SecRule REQBODY_PROCESSOR_ERROR "!@eq 0" "id:'200003',phase:3,t:none,deny,status:403,msg:'Multipart request body failed strict validation: PE %{REQBODY_PROCESSOR_ERROR}''
curl -v 'https://preprod.X' -H 'content-type: application/xml' -d 'test' curl -v 'https://preprod.X' -H 'content-type: application/json' -d 'test'
Have a good day
Vincent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
It's not a bug report, just an information share we hope some folks would find usefull.
If you want catch REQBODY_PROCESSOR_ERROR against requestBodyProcessor=XML, your rules on phase 2 will be bypass.
You must catch it on phase 3+.
This will work on both requestBodyProcessor=JSON and requestBodyProcessor=XML :
SecRule REQBODY_PROCESSOR_ERROR "!@eq 0" "id:'200003',phase:3,t:none,deny,status:403,msg:'Multipart request body failed strict validation: PE %{REQBODY_PROCESSOR_ERROR}''
curl -v 'https://preprod.X' -H 'content-type: application/xml' -d 'test'
curl -v 'https://preprod.X' -H 'content-type: application/json' -d 'test'
Have a good day
Vincent
The text was updated successfully, but these errors were encountered: