Lab: CORS vulnerability with basic origin reflection
Summary: PortSwigger's lab demonstrates a CORS misconfiguration in which the application trusts all origins, allowing cross-origin requests to succeed. The exercise asks the user to craft JavaScript that retrieves the administrator's API key through CORS and upload it to the exploit server, with the lab solved once that key is submitted.
Why it matters: An origin policy that trusts every origin lets any site a logged-in administrator visits read their data, so the administrator's API key becomes retrievable by whoever controls that page.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026