cors-cross-origin-misconfiguration

Diagnose CORS misconfigurations that expose authenticated API responses to cross-origin reads.

5|2|Updated May 16, 2026
One-click install
npx skills add https://github.com/DorianGallo/hack-skills-local --skill cors-cross-origin-misconfiguration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cors-cross-origin-misconfiguration
Source: https://github.com/DorianGallo/hack-skills-local/tree/main/skills/cors-cross-origin-misconfiguration
Command: npx skills add https://github.com/DorianGallo/hack-skills-local --skill cors-cross-origin-misconfiguration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you identify CORS misconfigurations that allow cross-origin pages to read authenticated API responses, turning browser trust mistakes into real data exposure.

Core Features & Use Cases

  • Credentialed CORS exposure analysis: Triages Access-Control-Allow-Origin, Access-Control-Allow-Credentials, and preflight behavior to determine whether an attacker-controlled origin can read responses with cookies.
  • Origin validation failure patterns: Reviews reflection, wildcard/allowlist bypasses, null origin acceptance, and caching mistakes (missing Vary: Origin) that can enable CORS cache poisoning.
  • Actionable exploitation scenarios: Provides JSONP hijacking context, null-origin sandbox testing, Vary/origin caching verification, and an end-to-end internal-network CORS exploitation chain for realistic assessment.

Quick Start

Use the cors-cross-origin-misconfiguration skill to test a target endpoint for reflected origins, credential handling, preflight policy issues, and bypassable trust boundaries.

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 if a CORS misconfiguration allows credentialed cross-origin requests?

To test CORS misconfiguration for credentialed cross-origin requests, you analyze Access-Control-Allow-Origin and Access-Control-Allow-Credentials headers to determine if attacker-controlled origins can read authenticated API responses using cookies.

What causes CORS cache poisoning when Vary Origin is missing?

CORS cache poisoning occurs when a caching layer misses the Vary: Origin header. This failure allows a cached response generated for one origin to be incorrectly served to a different cross-origin requester.

How does null origin acceptance lead to cross-origin data exposure?

Null origin acceptance leads to cross-origin data exposure when a server trusts sandboxed iframe or data URI requests. This permits attacker-controlled pages to bypass allowlists and read authenticated browser responses.

Can I detect reflected origins and wildcard bypasses in Access-Control-Allow-Origin?

Yes, you can detect reflected origins and wildcard bypasses by validating server response headers against secure origin whitelisting rules. This identifies whether dynamic origin reflection permits unauthorized cross-origin access.

What is the best way to verify preflight trust errors in cross-origin API security?

The best way to verify preflight trust errors is by reviewing preflight policy behavior against expected origin whitelisting rules. This ensures browser request behaviors align with secure credential gating and correct trust boundaries.

Does this CORS analysis cover internal-network exploitation chains?

Yes, this CORS analysis covers internal-network exploitation chains by providing end-to-end assessment scenarios. These include JSONP hijacking context and null-origin sandbox testing to evaluate realistic cross-origin trust boundary bypasses.