Forum Discussion
Illegal Request in Learning Suggestion for 200 OK response
Dears, I want to know the reason why this suggestion is showing an illegal request status even though response code is 200 OK. Is it because multiple violations triggered? The policy is in transparent mode and I am just verifying the suggestions. Can someone please provide an expert advise?
5 Replies
- Shyy
Cirrus
Hey,
I've had similar issue just with SQL injection,
Where it identified the SQL injection but still had 200 OK.
I had to manually enable SQL injection blocking in "Learning and blocking settings", for it to actually block it.
https://techdocs.f5.com/kb/en-us/products/big-ip_asm/manuals/product/asm-implementations-12-1-0/25.html - SRM
Altocumulus
Dear Shyy,
Thanks for your response.
My concern is not about why the request is not being blocked. The service is in transparent mode right now and these are just suggestions. I am curious to know why this suggestion flagged the request as illegal despite having the repsonse code 200 OK. Is it because the request triggered violations such as Modified Domain Cookie, Illegal Empty Parameter Value, Illegal Request Length, or JSON not complying with settings? Injeyan_Kostas any expert advice here? Hi,
Yes — a request can show Illegal even though the backend returned 200 OK because the WAF detected one or more violations, and Response Code has no influence on the violation status.
The “Illegal” flag is based only on WAF policy evaluation, not on the application’s response.
BR
Aswin- SRM
Altocumulus
Thanks for your response
200 OK is HTTP layer status.
It does not confirm whether the http payload is ok or not.if you havent done it, WAF learning should be done only for traffic from legitimate testers, not live user traffic.
you can set vserver with waf learning mode to be used by the legitimate testers.
after learning and policy modification is done, apply the resulted waf policy to vserver of live traffic.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
