Merge pull request #76 from Nadino92/master

Basic CORS misconfiguration
patch-1
bauthard 2020-05-04 22:03:08 +05:30 committed by GitHub
commit 59abc09ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,16 @@
id: basic-cors-misconfig-flash
info:
name: Basic CORS misconfiguration exploitable with Flash
author: nadino
severity: low
requests:
- method: GET
path:
- "{{BaseURL}}/crossdomain.xml"
matchers:
- type: word
words:
- 'allow-access-from domain="*"'
part: body

View File

@ -0,0 +1,18 @@
id: basic-cors-misconfig
info:
name: Basic CORS misconfiguration
author: nadino
severity: medium
requests:
- method: GET
path:
- "{{BaseURL}}/"
headers:
Origin: https://evil.com
matchers:
- type: word
words:
- 'Access-Control-Allow-Origin: https://evil.com'
part: header

View File

@ -0,0 +1,16 @@
id: crlf-injection
info:
name: CRLF injection
author: nadino
severity: low
requests:
- method: GET
path:
- "{{BaseURL}}/%0D%0ASet-Cookie:crlfinjection=crlfinjection"
- "{{BaseURL}}/%E5%98%8D%E5%98%8ASet-Cookie:crlfinjection=crlfinjection" #unicode bypass
matchers:
- type: dsl
dsl:
- 'contains(set_cookie,"crlfinjection")'