Skills for Real Engineers. Straight from my .agents directory.
hunt-cors
Agent skill fromelementalsouls/Claude-BugHunter
Hunt CORS Misconfiguration — origin-reflection with credentials, null-origin trust, subdomain-regex bypass (unanchored vs unescaped-dot vs prefix-only), pre-flight (OPTIONS) gating bypass, postMessage origin checks. High only when an attacker-controlled origin can perform a CREDENTIALED cross-origin read of sensitive data and you have proven it in a browser. Use when testing API endpoints, SPAs, or any app emitting Access-Control-* headers.
How to install hunt-cors
npx skills add elementalsouls/Claude-BugHunter# or add only this skill to Claude Code: copy the folder
skills/hunt-cors/
# into
~/.claude/skills/hunt-cors/ (all projects)
.claude/skills/hunt-cors/ (one project)
1# HUNT-CORS — Cross-Origin Resource Sharing Misconfiguration23## What actually pays (and what does not)45CORS pays High **only** when an attacker-controlled origin can perform a6**credentialed** cross-origin read of sensitive authenticated data, and you7have a browser PoC proving the response body is readable from `evil.com`.89Two hard browser rules that kill most "findings" — check these FIRST:1011- **`Access-Control-Allow-Origin: *` CANNOT be combined with credentials.**12 If the server returns `ACAO: *`, the browser refuses to send/expose the13 response for a `credentials: include` request. A wildcard-only endpoint is14 **not** credential-exploitable. It is only interesting if the data it serves15 is sensitive *without* a session (rare) — usually this is Informational/Low.16- **`Access-Control-Allow-Credentials: true` is meaningless on its own.** It17 matters only if `ACAO` reflects/allows your specific attacker origin AND a18 cross-origin credentialed `fetch` actually returns a readable body. ACAC on a19 response that does not reflect your origin proves nothing.2021If you cannot demonstrate a readable cross-origin authed body in a real22browser, you do not have a High. Do not submit header-diffing alone.2324---2526## Crown Jewel Targets2728- **Reflect-any-origin + credentials** — server echoes the `Origin` header AND29 sets `ACAC: true` → any site reads authed API responses. The classic High.30- **Null-origin trust** — `ACAO: null` + `ACAC: true`. A `sandbox` iframe (or a31…
Excerpt shown under the repository's MIT license.
More skills in Claude-BugHunter
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
