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

35 lines
894 B
YAML
Raw Normal View History

2021-05-09 17:10:56 +00:00
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.
2021-09-21 11:46:53 +00:00
tags: fuzz
2021-05-09 17:10:56 +00:00
http:
2021-05-09 17:10:56 +00:00
- 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
req-condition: true
matchers:
- type: dsl
dsl:
- "status_code_1 == 403 && status_code_2 != 403"
- "status_code_1 == 403 && status_code_3 != 403"
condition: or