Natas Level 21
Natas Level 21 — two related sites share one session store; learn how an application you can influence can poison a more trusted one.
Table of Contents
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Username: natas21
URL: http://natas21.natas.labs.overthewire.org
Study guide
Level map: sign in as natas21 and find the password for natas22.
What this level teaches
Trust boundaries between co-located applications, and session sharing across them.
Key ideas
- Shared session store. The page mentions a second, “experimenter” site that runs next to this one and can set session data.
- Parameter-to-session mapping. The experimenter application copies request parameters into the session without limiting which ones.
- Cookie scope. The browser decides when to send a cookie, and you can copy a value from one site’s request to another.
How to approach it
- Visit the linked second site and study how it uses your input.
- Think about which session value the main site uses to grant access.
- Make the second site write that value into a session you then use on the first.
How developers prevent it
Separate session stores for separate trust levels, and never copy arbitrary request parameters into session state.