nuclei-templates/http/fuzzing/xff-403-bypass.yaml

37 lines
1.1 KiB
YAML

id: xff-403-bypass
info:
name: X-Forwarded-For 403-forbidden bypass
author: vavkamil
severity: info
description: Template to detect 403 forbidden endpoint bypass behind Nginx/Apache proxy & load balancers, based on X-Forwarded-For header.
metadata:
max-request: 3
tags: fuzz
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
Accept: */*
- |
GET / HTTP/1.1
Host: {{Hostname}}
Accept: */*
X-Forwarded-For: 127.0.0.1, 0.0.0.0, 192.168.0.1, 10.0.0.1, 172.16.0.1
- |
GET /test.txt HTTP/1.1
Host: {{Hostname}}
Accept: */*
X-Forwarded-For: 127.0.0.1, 0.0.0.0, 192.168.0.1, 10.0.0.1, 172.16.0.1
matchers:
- type: dsl
dsl:
- "status_code_1 == 403 && status_code_2 != 403"
- "status_code_1 == 403 && status_code_3 != 403"
condition: or
# digest: 490a0046304402206a6612059ab1c07a0fd95a6c0af1b343c4efa9f4651d78b7d603c78d04297feb0220380ea1b745833f10bd6cd37417d489ac56ceff2407c163583e674a4b93c7ac5e:922c64590222798bb761d5b6d8e72950