-
Notifications
You must be signed in to change notification settings - Fork 1
/
open-redirect.yaml
38 lines (38 loc) · 920 Bytes
/
open-redirect.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# info to search signature
id: Open-Redirect
type: fuzz
info:
name: Open Redirect
risk: Low
Author: Suraj Bhosale
# jaeles scan -p 'dest=example.com' or -p 'dest=http://example.com' or ...
params:
- dest: '{{.oob}}'
variables:
- prefix: |
http://
https://
https:
\/\/
/\/
/
//
///
////
///;@
payloads:
- "{{.Domain}}.{{.dest}}/{{.URL}}"
requests:
- method: GET
- generators:
- Path("[[.origin]]{{.prefix}}{{.payload}}", "*")
- Path("{{.prefix}}{{.payload}}", "*")
- Path("{{.payload}}", "*")
- Query("{{.prefix}}{{.payload}}")
- Query("{{.payload}}")
- Body("{{.payload}}")
detections:
- >-
RegexSearch("resHeaders", "(?m)^(L|l)ocation: (((http|https):)?({{.prefix}})?)?{{.dest}}")
- >-
RegexSearch("ResBody", "(?m)<meta http-equiv(.*?)url(\s)?=(\'|\")?(.*?){{.dest}}(.*?)>")