-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7158826
commit 1c4691d
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#Verified: Yes | ||
metadata: | ||
language: v1-beta | ||
name: "WAF-bypass" | ||
description: "Use different payloads to try to bypass the WAF or get an idea of how it can be bypassed" | ||
author: "Brumens" | ||
tags: "waf", "firewall", "bypass" | ||
|
||
define: | ||
param = "dummyparam" | ||
trackHeader = "X-BCheck" | ||
trackValue = "waf-bypass" | ||
|
||
run for each: | ||
payload = | ||
"<img/src/=/onerror=!byp4sst", | ||
"<image/src/\"=\"\"/onerror=!byp4asst//\"=", | ||
"<sometag/x=\"\"/onmouseover=!byp4asst" | ||
|
||
given request then | ||
if {base.response.headers} matches "(?i)(waf|firewall|protect|mechanism|cloudflare|akamai|cloudfront|azure|airlock|imperva|f5-)" then | ||
send request: | ||
method: "GET" | ||
appending queries: | ||
`{param}={payload}` | ||
replacing headers: `{trackHeader}`:`{trackValue}` | ||
|
||
if not( {latest.response.status_code} is "403" ) then | ||
report issue: | ||
severity: medium | ||
confidence: certain | ||
detail: `Web Application Firewall (WAF) is bypassable (XSS based) with payload template: {payload}` | ||
remediation: "Don't spend to much money on a firewall" | ||
end if | ||
end if |