CORS misconfiguration testing — reflected-origin + credentials, null-origin, wildcard, and weak origin-matching (prefix/suffix/substring/regex-dot, trusted-subdomain+XSS) that expose authenticated data cross-origin. Tier 1. Payloads: payloads/client-side.md. Use when endpoints return sensitive data with Access-Control-Allow-* headers.
16 stars
0 votes
0 copies
3 views
Added November 17, 2026
securityrusttestingbackend
Works with
cli
mcp
Security analysis
A100/100
Scanned November 17, 2026
$npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill cors --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cors?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-cors)
---
name: cors
description: "CORS misconfiguration testing — reflected-origin + credentials, null-origin, wildcard, and weak origin-matching (prefix/suffix/substring/regex-dot, trusted-subdomain+XSS) that expose authenticated data cross-origin. Tier 1. Payloads: payloads/client-side.md. Use when endpoints return sensitive data with Access-Control-Allow-* headers."
---
# CORS Misconfiguration
Permissive CORS lets an attacker origin *read* authenticated responses. Vary the `Origin` header and inspect ACAO/ACAC.
## Trigger phrases
`cors, cross-origin, access-control-allow-origin, origin reflection, acac, cors misconfiguration`
## Method
Send varied `Origin` values and check `Access-Control-Allow-Origin` (ACAO) + `Access-Control-Allow-Credentials` (ACAC):
1. **Reflected origin + credentials:** server echoes any Origin into ACAO with `ACAC:true` → any site reads authed data. Critical.
2. **null origin + credentials:** `Origin: null` reflected → exploit from a sandboxed iframe/`data:` doc.
3. **Wildcard `*`:** blocked with credentials, but leaks non-credentialed sensitive/internal data.
4. **Weak matching:** `allowed.com` matched by prefix/suffix/substring (`allowed.com.attacker.com`, `attackerallowed.com`), regex `.` literal, trailing data, or trusting all subdomains (→ then XSS/takeover on any subdomain = full read).
5. Build a PoC that `fetch`es with `credentials:'include'` from a malicious origin and exfiltrates the response.
## Escalation
CORS read of a CSRF token defeats CSRF defenses → chain to `csrf`; read PII/tokens → account compromise.
## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.
## Evidence
The weak ACAO/ACAC response, the working cross-origin read PoC, and the data exposed.