Cloud Web Application Firewall blocks API POST requests containing SQL keyword strings inside legitimate JSON body attributes. How do we tune WAF rule exclusions?

Scott Truffle 20 Reputation points
2026-09-22T00:49:50.5133333+00:00

Cloud Web Application Firewall blocks API POST requests containing SQL keyword strings inside legitimate JSON body attributes. How do we tune WAF rule exclusions?

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Most helpful
  1. Hoang Le 5,950 Reputation points Independent Advisor
    2026-09-22T02:01:20.0166667+00:00

    Hello Scott Truffle,

    When a Cloud Web Application Firewall blocks legitimate API POST requests because SQL keywords appear inside JSON attributes, the correct approach is to configure rule exclusions at the WAF policy level rather than disabling SQL injection protection globally. In Azure WAF, for example, you can define custom exclusions under WAF Policy → Managed Rules → Exclusions, targeting specific request attributes such as RequestBodyNames or RequestBodyJsonArgNames. By specifying the exact JSON field name where SQL‑like strings are expected, the WAF will bypass inspection for that field while continuing to enforce SQL injection rules elsewhere. This ensures that legitimate payloads containing reserved words are accepted without weakening protection for other inputs. After applying the exclusion, monitor logs under Application Gateway diagnostics or Azure Front Door WAF logs to confirm that only the intended fields are excluded and no broader bypass is introduced. This fine‑grained tuning is the recommended way to balance security with application functionality.

    If my answer is useful for you, please hit Accept the answer to support me.

    Thank you,

    HL.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.