Skip to content
Payload Playground

CORS Misconfiguration PoC Generator

Web

Generate CORS misconfiguration PoC payloads for reflected origin and subdomain bypass testing.

Related Generators

View all Web

Companion tool

CORS Misconfiguration Scanner

Frequently Asked Questions

What is a CORS misconfiguration?+

Cross-Origin Resource Sharing (CORS) controls which web origins may read responses from an API. A misconfiguration occurs when the server reflects the Origin header back in Access-Control-Allow-Origin while also setting Access-Control-Allow-Credentials: true, letting any attacker site read authenticated responses and steal user data.

How do I test for CORS issues with this generator?+

The CORS Misconfiguration generator builds a fetch or XHR PoC that sends credentials: 'include' from your attacker page and varies the Origin header. Try a reflected origin, a null origin (via a sandboxed iframe or data: page), and subdomain/suffix tricks like trusted.com.evil.com or eviltrusted.com to see what the server trusts.

Why is reflecting the Origin header with credentials so dangerous?+

When a server echoes the request Origin into Access-Control-Allow-Origin and allows credentials, the same-origin policy is effectively disabled for any site. An attacker page can make the victim's browser send their session cookie and read the JSON response, exfiltrating private data. The fix is a strict origin allowlist, never wildcard reflection with credentials.

Does the CORS generator run in my browser?+

Yes, it generates the PoC HTML and JavaScript entirely client-side and sends nothing to any server, so your target details stay private. The output is intended only for demonstrating CORS flaws on systems you are authorized to assess in a bug bounty or pentest.

Related Cheat Sheets

View all cheat sheets

Send feedback

Report an issue or suggest an improvement.

0/2000

Your report includes this page (/generators/cors-misconfiguration) and your browser. If you’re signed in, we include your account ID and plan so support can prioritize Pro requests. Please leave out secrets and client data.