Skip to content

[TEMPLATE CONTRIBUTION] Azure Front Door WAF IP Bypass #12737

@ldionmarcil

Description

@ldionmarcil

Is there an existing template for this?

  • I have searched the existing templates.

Nuclei Template

id: azure-waf-bypass

info:
  name: Azure Front Door WAF IP Bypass
  author: ldionmarcil
  severity: low
  reference:
    - https://trustedsec.com/blog/azures-front-door-waf-wtf-ip-restriction-bypass
  description: |
    Potentially bypassable IP blocking using Azure Front Door WAF.
    This can be bypassed by default, if 'RemoteAddr' is used to filter IPs.
  tags: azure,waf

requests:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 403

        condition: and

      - type: word
        words:
          - "x-azure-ref"
        case-insensitive: true
        part: header

        condition: and

      - type: word
        words:
          - "x-cache"
        case-insensitive: true
        part: header

Relevant dumped responses

Anything else?

Heuristic to detect the default Azure Front Door IP Filtering WAF response, which can be bypassable with a proper X-Forwarded-For request header, as detailed in https://trustedsec.com/blog/azures-front-door-waf-wtf-ip-restriction-bypass.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions