35 lines
1.1 KiB
YAML
35 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: fuzzing,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: 4a0a0047304502205ca20cf47a57e9a352da7b8576444b3aa56a2f574dbb6c5821e937a8b1701f4d022100e5fe8f309da7da7beaa9b4223f9f6defc74df5c7f66fc10ddac9b2f5b2d2582f:922c64590222798bb761d5b6d8e72950 |