Skip to content
Back to skills

Cors

ASecurity

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.

Are you the author of Cors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-cors/badge)](https://www.skillsdirectory.com/skills/anandjogawade-cors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.