how to disable specific owasp 3.2 rule for a specific URI in azure waf v2

SLIMANI Smail OBS/DD 40 Reputation points
2023-11-17T13:33:35.8733333+00:00

Hello,

I need to ignore a specific OWASP rule in my WAF V2. I have multiple requests with different request URIs, for example, https://www.example.com/abc/def/xy

In add exclusion, waf consider just the "Request headers," "Cookie," and "Arg"

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
973 questions
Azure Web Application Firewall
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 23,426 Reputation points Microsoft Employee
    2023-11-17T17:52:18.4966667+00:00

    @SLIMANI Smail OBS/DD

    Thank you for reaching out. I understand that you want to disable a specific owasp 3.2 rule for a specific URI for the Application Gateway WAF_v2 SKU and I understand that exclusion rule can be only applied for Request headers," "Cookie," and "Arg".

    The recommended solution in such scenarios is to add a different WAF policy to that specific URI https://www.example.com/abc/def/xy and then disable the specific owasp 3.2 rule. This way rest of the URI's are evaluated for the specific owasp 3.2 rule.

    To achieve this you check this documentation here to enable a Per-URI policy.

    For even more customization down to the URI level, you can associate a WAF policy with a path-based rule. If there are certain pages within a single site that require different policies, you can make changes to the WAF policy that only affect a given URI. This might apply to a payment or sign-in page, or any other URIs that need an even more specific WAF policy than the other sites behind your WAF. As with per-site WAF policies, more specific policies override less specific ones. This means a per-URI policy on a URL path map overrides any per-site or global WAF policy above it.

    You can follow this documentation for implementing Per-URI policy.

    Hope this helps! Please let me know if you have any additional questions. Thank you!


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful