cors-cross-origin-misconfiguration

Tests CORS configurations for origin reflection, credential exposure, and allowlist bypass vulnerabilities.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/lNwNl/Praxis --skill cors-cross-origin-misconfiguration-lnwnl
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cors-cross-origin-misconfiguration
Source: https://github.com/lNwNl/Praxis/tree/main/skills/cors-cross-origin-misconfiguration
Command: npx skills add https://github.com/lNwNl/Praxis --skill cors-cross-origin-misconfiguration-lnwnl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web applications frequently misconfigure Cross-Origin Resource Sharing headers, allowing attacker-controlled pages to read authenticated API responses from a victim's browser. This Skill provides a structured testing playbook to detect reflected origins, wildcard-with-credentials flaws, null origin acceptance, regex allowlist bypasses, and cache poisoning issues before attackers exploit them. ## Core Features & Use Cases - Origin Reflection & Credential Testing: Send crafted Origin headers, test credentialed requests, and identify servers that echo arbitrary origins with Access-Control-Allow-Credentials enabled. - Allowlist Bypass Payloads: Probe weak regex and substring validators with payloads like attacker-controlled subdomains, Unicode homoglyphs, and null origins via sandboxed iframes. - Advanced Attack Chains: Covers subdomain XSS to CORS bypass chains, Vary: Origin cache poisoning, internal network API exfiltration, DNS rebinding, and JSONP hijacking scenarios in the companion SCENARIOS.md. - Use Case: During a web application penetration test, you discover an API returning Access-Control-Allow-Origin headers. Use this Skill to systematically test reflection behavior, attempt allowlist bypasses, and demonstrate credentialed data theft with a working proof-of-concept. ## Quick Start Use the CORS misconfiguration skill to test https://target.com/api/user for origin reflection and credentialed cross-origin read vulnerabilities.

Frequently Asked Questions about cors-cross-origin-misconfiguration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for CORS misconfiguration vulnerabilities?▼

Send requests with crafted Origin headers and check whether the server reflects them in Access-Control-Allow-Origin. Then test with credentials included, probe allowlist bypasses using attacker subdomains and parser edge cases, and assess whether readable data is sensitive enough to chain into account impact.

What is a null origin CORS exploit?▼

A null origin exploit abuses servers that accept Origin: null in their allowlist. An attacker uses a sandboxed iframe, data: URI, or file: page to send requests with a null origin, then reads credentialed API responses when the server reflects Access-Control-Allow-Origin: null.

How does subdomain XSS lead to CORS bypass?▼

If an API allows CORS from any *.target.com subdomain, XSS on any subdomain lets an attacker make credentialed cross-origin requests. Same-site cookies are sent automatically and the CORS allowlist permits the response read, giving full API access from the XSS context.

Why does missing Vary: Origin cause CORS cache poisoning?▼

When a server reflects the Origin header without sending Vary: Origin, caches may serve a response containing an attacker's Access-Control-Allow-Origin value to other users. Victims' browsers then allow the attacker's origin to read the cached response.

What regex mistakes allow CORS origin validation bypass?▼

Common flaws include unanchored patterns, substring matching, and overly broad wildcards. Bypass payloads include https://target.com.attacker.com, https://attacker.com/.target.com, and Unicode homoglyph domains that normalize differently between validator and browser.

Can CORS misconfigurations expose internal network APIs?▼

Yes. Internal APIs using Access-Control-Allow-Origin: * can be read by JavaScript on an attacker's page when an internal employee visits it. The skill also covers CORS timing-based port scanning and DNS rebinding to reach internal services.