← All labs
CSRF Level 5 / 6 Medium

Login CSRF

Force the victim to log into an attacker-controlled account.

Sign in

The victim is browsing while logged in. This login form has no CSRF protection. Force the victim's browser to log in as your account, so their activity lands in it.

Victim is currently signed in as

victim

Your attacker account credentials (yours to give away):

username: attackerpassword: hunter2

The app's real login form:

<form method="POST" action="index.php"> <input name="username"> <input type="password" name="password"> </form>

Attacker page HTML:

This is an isolated, intentionally-vulnerable sandbox. Data here is fake and scoped to you. The rest of Uncrypt Playground is not part of the target.