Skip to main content

Settings

Color Mode

Theme Skin

Background

Appearance preferences are saved in this browser only.

Environment

Current Environment Production

Built with JEKYLL_ENV=production. Changes require deployment.

Quick Links

Theme & Build

Jekyll v3.10.0
Last BuildNov 24, 17:25

Page Location

Page Info

Layout default
Collection wargames
Path _wargames/natas/natas19.md
URL /wargames/natas/natas19/
Date 2026-04-07

Natas Level 19

Natas Level 19 — session IDs look random but encode the username; learn to see structure in what appears to be gibberish.

Table of Contents

Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.

Username: natas19
URL:      http://natas19.natas.labs.overthewire.org

Study guide

Level map: sign in as natas19 and find the password for natas20.

What this level teaches

That apparent randomness may hide a predictable structure, which can be decoded and forged.

Key ideas

  • Decoding the cookie. Compare the cookie values you receive for different usernames and look for a pattern, for example a standard encoding of readable text.
  • Predictable plus enumerable. Once the format is understood, building candidate values is a short script.
  • Same goal as before. You are still after the administrator’s session.

How to approach it

  1. Log in with several different usernames and compare the resulting cookie values.
  2. Work out what is being encoded, and what part varies.
  3. Generate candidates for the admin account and test them.

How developers prevent it

Treat session IDs as opaque random tokens. Never derive them from user attributes.