Skip to content

LAB 1 - CSRF vulnerability with no defenses

Initial instructions

This lab's email change functionality is vulnerable to CSRF.

To solve the lab, craft some HTML that uses a CSRF attack to change the viewer's email address and upload it to your exploit server.

You can log in to your own account using the following credentials: wiener:peter

First of all I started by login with the given credentials.

alt text

Now lets update the email but lets intercept all with BurpSuite.

alt text

In BurpSuite we get the following request.

alt text

Lets generate a CSRF PoC. And we got the following so lets send it to the victim but changing the email address to any other email.

alt text

Lets go to the exploit server and send it to the victim.

alt text

Congratulations, you solved the lab!