Can I run on WAF policies using version 3.1 of the OWASP rules and another policy using version 3.2?

Chris 26 Reputation points
2022-06-07T17:25:52.55+00:00

Hi,

Could somebody confirm whether it's possible to have WAF policies running different versions of the OWASP rules i.e. one WAF policy using 3.1 and one using 3.2. The message below is what I get when I set up a new WAF policy and choose version 3.2. It's a bit ambigious as to whether it applies just to this policy or all of my policies, 209196-screenshot-2022-06-07-at-175532.png

Any reassurance from people running multiple versions would be much appreciated as I don't want to move over completely until I've tested the 3.2 rules.

Many thanks.

Chris

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
655 questions
0 comments No comments
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,481 Reputation points Microsoft Employee
    2022-06-08T12:52:10.13+00:00

    Hello @Chris ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to know if it is possible to have WAF policies running different versions of the OWASP rules i.e. one WAF policy using 3.1 and one using 3.2 and whether it would override all policies.

    Azure Web Application Firewall (WAF) policy can be associated to an application gateway (global), a listener (per-site), or a path-based rule (per-URI) for them to take effect. It can be associated with any combination of application gateways, listeners, and path-based rules. So there are 3 types of WAF policy associations:

    1. Global WAF policy : When you associate a WAF policy globally, every site behind your Application Gateway WAF is protected with the same managed rules, custom rules, exclusions, and any other configured settings.
    2. Per-site WAF policy : With per-site WAF policies, you can protect multiple sites with differing security needs behind a single WAF by using per-site policies.
    3. Per-URI policy : For even more customization down to the URI level, you can associate a WAF policy with a path-based rule.

    By default, with 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. If there's a global policy, and a per-site policy (a WAF policy associated with a listener), then the per-site policy overrides the global WAF policy for that listener. Other listeners without their own policies will only be affected by the global WAF policy.

    Refer : https://video2.skills-academy.com/en-us/azure/web-application-firewall/ag/policy-overview
    https://video2.skills-academy.com/en-us/azure/web-application-firewall/ag/per-site-policies

    So to answer your question, yes it is possible to have WAF policies running different versions of the OWASP rules i.e. one WAF policy using 3.1 and one using 3.2. A particular policy will only override another if it is more specific than the other policies.

    For example: You have 2 sites - abc.com and xyz.com behind your Application gateway WAF v2 and you have a policy with OWASP rules version 3.1 associated to the whole application gateway and there is another WAF policy with OWASP rules version 3.2 associated with the abc.com listener, then your site abc.com will use CRS 3.2 and xyz.com will use CRS 3.1.

    NOTE: Because CRS 3.2 runs on the new Azure WAF engine, you can't downgrade to CRS 3.1 or earlier. If you need to downgrade, you need to contact Azure Support.

    So, for testing of the new core rule set 3.2, it would be better to apply the WAF policy to a single site or URI path as it will not affect the whole application gateway.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    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

Your answer

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