cors-testing
CORS misconfiguration testing for data theft and access control bypass
от VigilOSS★ 35 звёзд на GitHub
Установить cors-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CORS Misconfiguration Testing
vigil assess kaliaudit flags: use--technique CORS—--probe-kind fingerprintfor the header-only baseline/reflection/preflight probes,--probe-kind exploitonce you host and fire the credential-theft PoC. Route every crafted-Origincurl call throughvigil assess kali exec.
When to Activate
- API returns
Access-Control-Allow-Originheader - Cross-origin requests observed in application flow
- Sensitive data served via API endpoints
- Single-page application with API backend
Tools
vigil assess kali exec -- curl -s -i -H "Origin: …" …for single probes; sweep a list of origins withvigil assess kali sweep --values-file origins.txt -- curl -s -i -H "Origin: {}" …. Include the classes scanners miss: suffix/prefix parser confusion, verb tampering, and the Content-Type pre-flight dodge.
Payload and Checklist Reference
agent/references/payloads/cors-payloads.md carries the working checklist (baseline capture,
origin reflection, null origin, subdomain/regex bypass, pre-flight bypass) with the null-origin and
reflected-origin PoC HTML — work it top to bottom against the target.
What to Record
Standard finding-record fields (agent/references/runtime-guides/web-finding-recording.md) plus the two values that
prove this class: the exact Access-Control-Allow-Origin / Access-Control-Allow-Credentials
values returned, and the Origin value that triggered them.
Kill Signals — Stop Testing When
- Origin reflection +
Access-Control-Allow-Credentials: trueis the primitive, not the finding: prove a credentialed cross-origin read of sensitive data from a victim-shaped browser session. Chromium defaults cookies toSameSite=Lax, which withholds them from cross-site fetches, so the read works only forSameSite=Nonecookies, a same-site attacker origin (a subdomain), or non-Chromium victims. Without that proof it is chain-only (agent/references/finding-fp-and-severity-gate.md). ACAO: *→ browsers never send credentials with it; impact is limited to IP- or network-based authorization (intranet APIs).- Every origin variant rejected (null, subdomain, encoding, parser confusion) → restrictive;
record the negative with a positive control (
agent/rules/hunting.md§13).
Escalate When
- The server reflects
Origin: nullwithAccess-Control-Allow-Credentials: true— sandboxed iframes, data: URIs, and redirected requests all produce null origin, the attack surface is real - An allowlist check can be tricked by suffix/prefix match (
https://trusted.example.attacker.example,https://attacker-trusted.example,https://[email protected]) — the regex is wrong, enumerate the full URL-parser confusion set - Any subdomain of the target reflects or is whitelisted (
*.target.example) AND you can get XSS/content control on any subdomain (old marketing site, staging, S3 takeover, user-controlled subdomain) — subdomain-to-apex CORS abuse is the classic chain - The pre-flight response permits custom request headers, credentials, or non-simple methods for a broader origin set than the actual request check — CORS policies often diverge between preflight and actual response, test both
- A non-credentialed CORS read returns sensitive data (user profile, API keys, session metadata) even without
Allow-Credentials— IP- or network-based authorization still leaks through a wildcard ACAO
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cors-testing?
CORS misconfiguration testing for data theft and access control bypass
Как установить скилл cors-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cors-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…