CSRF

Level 1

In this warm up, create a page with the below code. A simulated user will visit the page.

Level 2

In this level, there is a referrer header check, so adding the code to the hacker.site page will not work. Fortunately there is a stored XSS in the feedback form, so can use the above code to create the user.

Level 3

This time there is Anti-CSRF tokens in use.. But using its possible to extract the token from the source of the page and then send it with our request.

Level 4

Analying the tokens using Burp sequencer, reveals that there is only 11 unique tokens in use.

Takes a list of CSRF tokens and then attempts to find the correct one by send the request with each token.

Last updated