2020-05-04 15:03:50 +00:00
|
|
|
id: basic-cors-misconfig
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Basic CORS misconfiguration
|
|
|
|
author: nadino
|
2021-01-11 06:44:22 +00:00
|
|
|
severity: low
|
2021-02-12 05:53:01 +00:00
|
|
|
tags: cors
|
2020-05-04 15:03:50 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2020-05-09 08:59:35 +00:00
|
|
|
- "{{BaseURL}}"
|
2020-05-04 15:03:50 +00:00
|
|
|
headers:
|
2021-01-11 06:44:22 +00:00
|
|
|
Origin: https://evil.com
|
|
|
|
|
2020-05-04 15:03:50 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
2020-05-25 08:13:15 +00:00
|
|
|
- "Access-Control-Allow-Origin: https://evil.com"
|
2021-01-11 06:44:22 +00:00
|
|
|
- "Access-Control-Allow-Credentials: true"
|
|
|
|
condition: and
|
2020-05-04 15:03:50 +00:00
|
|
|
part: header
|