This commit is contained in:
taqin
2026-04-19 21:10:40 +07:00
parent 5fdd214fdc
commit 27381d4e37
211 changed files with 53571 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
id: xpl-cors-misconfig
info:
name: "CORS Misconfiguration (Origin Reflection)"
author: imtaqin
severity: medium
description: |
The server reflects an attacker-controlled Origin header and
also sets Access-Control-Allow-Credentials:true — a classic
account-takeover primitive.
tags:
- cors
- misconfig
http:
- method: GET
path:
- "{{BaseURL}}/"
- "{{BaseURL}}/api/user"
- "{{BaseURL}}/api/me"
headers:
Origin: "https://evil.example"
matchers-condition: and
matchers:
- type: regex
part: header
regex:
- "(?i)access-control-allow-origin:\\s*https://evil\\.example"
name: origin-reflected
- type: regex
part: header
regex:
- "(?i)access-control-allow-credentials:\\s*true"
name: credentials-enabled