Natas Level 5
Natas Level 5 — a login state is stored in a cookie the user can edit; learn to inspect and change cookies.
Table of Contents
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Username: natas5
URL: http://natas5.natas.labs.overthewire.org
Study guide
Level map: sign in as natas5 and find the password for natas6.
What this level teaches
How cookies carry state between requests, and the danger of storing trust decisions in them.
Key ideas
- Cookies. Small name-value pairs the server asks the browser to store and return with every request.
- Visible and editable. The developer tools show all cookies for the site, and you can change them or send your own.
- State must be verified. If the server simply believes a cookie that says you are authorised, anyone can claim that.
How to approach it
- Look at the page’s message about your status, then check the cookies the browser holds for this site.
- Think about what value would change the server’s decision.
How developers prevent it
Keep authorisation state on the server and give the client only an unguessable session identifier, or sign any data you must hand to the client.