Cyber Risks · PortSwigger Research

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