yaklang avatar

Cors Cross Origin Misconfiguration

This is a systematic playbook for catching CORS misconfigurations that let attackers read authenticated API responses from a victim's browser. It covers the usual suspects: reflected origins, null origin acceptance, weak regex allowlists, and the missing Vary header that can poison CDN caches. The null origin exploitation via sandboxed iframes is especially clean, and the subdomain XSS to CORS chain section shows how a single XSS on blog.target.com can break into api.target.com if the allowlist trusts *.target.com. Load this when you see Access-Control headers in responses or need to test whether browser-based attacks can exfiltrate sensitive data cross-origin. The regex bypass table alone will save you time.

skills.sh installs
3.9K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill cors-cross-origin-misconfiguration --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: CORS Misconfiguration — Credentialed Origins, Reflection, and Trust Boundary Errors

AI LOAD INSTRUCTION: Use this skill when browsers can access authenticated APIs cross-origin. Focus on reflected origins, credentialed requests, wildcard trust, parser mistakes, and origin allowlist bypasses. For JSONP hijacking deep dives, same-origin policy internals, honeypot de-anonymization, and CORS vs JSONP comparison, load the companion SCENARIOS.md.

Extended Scenarios

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Testing & QA, Automation & Workflows
First seen
May 16, 2026

More from yaklang/hack-skills

All 102
1dotnet avatartemplate-validationdotnet/skillsValidates custom dotnet new templates for correctness before publishing. Catches missing fields, parameter bugs, shortName conflicts, constraint issues, and com3.9Kskills.sh installs
2yaklang avatarbusiness-logic-vulnyaklang/hack-skillsEntry P1 category router for business logic testing. Use when workflow abuse, race conditions, pricing flaws, or multi-step state attacks matter more than parse3.9Kskills.sh installs
3github avatareval-driven-devgithub/awesome-copilotImprove AI application with evaluation-driven development. Define eval criteria, instrument the application, build golden datasets, observe and evaluate applica3.9Kskills.sh installs
4anomalyco avataropentuianomalyco/opentuiBuild terminal UIs with OpenTUI. Covers core, components, native images, audio, keymaps, React, Solid, plugins, testing, standalone executables, QR encoding, SS3.9Kskills.sh installs
5yaklang avatardependency-confusionyaklang/hack-skillsSupply-chain testing via package-manager dependency confusion: when internal package names resolve to attacker-controlled public registries, leading to maliciou3.8Kskills.sh installs
6yaklang avatarsaml-sso-assertion-attacksyaklang/hack-skillsSAML SSO assertion attack playbook. Use when testing signature validation, assertion wrapping, audience restrictions, ACS handling, XML trust boundaries, and en3.8Kskills.sh installs