Wardlore.

Stage 5 beginner

Logins and Sessions

Find out how the bakery checks your password, remembers you, and forgets you when you log out.

Runs in your browser. Nothing to install — the lesson and a real Linux computer open side by side.

Lesson steps

  1. Welcome
  2. Hashing a password
  3. One leak, two accounts
  4. Log in and get a session
  5. Log out. Or not?
  6. What a failed login says
  7. A lock with a back door
  8. Try the stolen cookie again
  9. Final challenge: Jo's receipt
  10. Stage complete

What this stage is

The bakery from How Websites Work now has customer accounts. You'll log in with curl, read the cookie it gives you, and use that cookie to open your account without sending your password again.

You'll also look at how it stores passwords and what happens when a login fails. Each short lesson shows you something to try, then gives you a new case to check yourself. Finish by testing a fixed copy of the bakery.

Why it matters

Closing a page doesn't end a login. Even deleting a cookie can leave the session working on the server. You'll see the difference for yourself, then check that logging out really takes away access.

By the end you'll be able to

You'll reuse the terminal, hashes and HTTP requests from Chapter 1 and How Websites Work. New words and command options are explained as you meet them.

Learn more (external)

← Stage 4: WebsitesStage 6: IDOR →