1. Web Security Academy
  2. CORS
  3. Lab

Lab: CORS vulnerability with basic origin reflection


This website has an insecure CORS configuration in that it trusts all origins.

To solve the lab, craft some JavaScript that uses CORS to retrieve the administrator's API key and upload the code to your exploit server. The lab is solved when you successfully submit the administrator's API key.

You have an account on the application that you can use to help design your attack. The credentials are: wiener:peter.