commit
2cd552e588
|
@ -2,14 +2,15 @@ id: cors-misconfig
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: CORS Misconfiguration
|
name: CORS Misconfiguration
|
||||||
author: nadino,g4l1t0,convisoappsec,pdteam,breno_css,nodauf
|
author: nadino,g4l1t0,convisoappsec,pdteam,breno_css,nodauf,amirmsafari
|
||||||
severity: info
|
severity: info
|
||||||
reference:
|
reference:
|
||||||
- https://portswigger.net/web-security/cors
|
- https://portswigger.net/web-security/cors
|
||||||
|
- https://portswigger.net/web-security/ssrf/url-validation-bypass-cheat-sheet
|
||||||
- https://www.corben.io/advanced-cors-techniques/
|
- https://www.corben.io/advanced-cors-techniques/
|
||||||
- https://www.geekboy.ninja/blog/exploiting-misconfigured-cors-cross-origin-resource-sharing/
|
- https://www.geekboy.ninja/blog/exploiting-misconfigured-cors-cross-origin-resource-sharing/
|
||||||
metadata:
|
metadata:
|
||||||
max-request: 11
|
max-request: 29
|
||||||
tags: cors,generic,misconfig
|
tags: cors,generic,misconfig
|
||||||
|
|
||||||
http:
|
http:
|
||||||
|
@ -22,11 +23,29 @@ http:
|
||||||
payloads:
|
payloads:
|
||||||
cors_origin:
|
cors_origin:
|
||||||
- "https://{{tolower(rand_base(5))}}{{RDN}}" # Arbitrary domain
|
- "https://{{tolower(rand_base(5))}}{{RDN}}" # Arbitrary domain
|
||||||
|
- "http://{{tolower(rand_base(5))}}{{RDN}}" # Arbitrary domain
|
||||||
- "https://{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
- "https://{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
- "https://{{FQDN}}.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
- "https://{{FQDN}}.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
- "https://{{FQDN}}{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
- "https://{{FQDN}}{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
|
- "https://localhost.{{tolower(rand_base(5))}}.com" # Localhost regex implementation edge case
|
||||||
|
- "http://localhost.{{tolower(rand_base(5))}}.com" # Localhost regex implementation edge case over http
|
||||||
|
- "http://s{{RDN}}" # Unencrypted domain ends with
|
||||||
- "https://{{FQDN}}_.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
- "https://{{FQDN}}_.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
- "https://{{FQDN}}%60.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
- "https://{{FQDN}}%60.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
|
- "https://{{FQDN}}.$.{{tolower(rand_base(5))}}.com" # Firefox and Safari allows $ as subdomain
|
||||||
|
- "https://{{FQDN}}.~.{{tolower(rand_base(5))}}.com" # Safari allows ~ as subdomain
|
||||||
|
- "https://{{FQDN}}.=.{{tolower(rand_base(5))}}.com" # Safari allows = as subdomain
|
||||||
|
- "https://{{FQDN}}.+.{{tolower(rand_base(5))}}.com" # Firefox and Safari allows + as subdomain
|
||||||
|
- "https://{{FQDN}}.&.{{tolower(rand_base(5))}}.com" # Safari allows & as subdomain
|
||||||
|
- "https://{{FQDN}}.*.{{tolower(rand_base(5))}}.com" # Safari allows * as subdomain
|
||||||
|
- "https://{{FQDN}}.).{{tolower(rand_base(5))}}.com" # Safari allows ) as subdomain
|
||||||
|
- "https://{{FQDN}}.(.{{tolower(rand_base(5))}}.com" # Safari allows ( as subdomain
|
||||||
|
- "https://{{FQDN}}.'.{{tolower(rand_base(5))}}.com" # Safari allows ' as subdomain
|
||||||
|
- "https://{{FQDN}}.!.{{tolower(rand_base(5))}}.com" # Safari allows ! as subdomain
|
||||||
|
- "https://{{FQDN}}.;.{{tolower(rand_base(5))}}.com" # Safari allows ; as subdomain
|
||||||
|
- "https://{{FQDN}}.,.{{tolower(rand_base(5))}}.com" # Safari allows , as subdomain
|
||||||
|
- "https://{{FQDN}}.-.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
|
- "https://{{FQDN}}._.{{tolower(rand_base(5))}}.com" # Arbitrary domain
|
||||||
- "null" # null origin
|
- "null" # null origin
|
||||||
- "https://{{tolower(rand_base(5))}}.{{RDN}}" # Arbitrary subdomain
|
- "https://{{tolower(rand_base(5))}}.{{RDN}}" # Arbitrary subdomain
|
||||||
- "http://{{tolower(rand_base(5))}}.{{RDN}}" # Arbitrary subdomain over http
|
- "http://{{tolower(rand_base(5))}}.{{RDN}}" # Arbitrary subdomain over http
|
||||||
|
|
Loading…
Reference in New Issue