Skip to content

Maze Level 4

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

There is no information for this level, intentionally.

Study guide

Level map: logged in as maze4, find the password for maze5.

What to expect

Upstream states "There is no information for this level, intentionally." That is part of the game: you discover what the level does by investigating it. Maze is a harder binary-exploitation wargame. Its authors say it needs knowledge of exploitation techniques, programming and reverse engineering, and that the levels are deliberately tricky and sometimes strange.

Where it fits

Maze is rated 5/10 by its original authors, and lives under /maze/ on the game server (SSH port 2225). This is page 5 of 10 in this mirror. Mid-game levels in wargames like this often add constraints that break the textbook technique, such as filtered bytes or a cleared environment, so be ready to adapt.

How to approach it

  1. Note the architecture and which protections are active (file, readelf -l), so you know which techniques are possible.
  2. List what the program trusts: input length, file names, the environment, the current directory, the time.
  3. The authors' advice is to get ready to use gdb; step through the program rather than guessing.
  4. Write down the one thing the program assumes about its input, then test what happens when that assumption is false.

Why it matters

Each level is a miniature version of a real bug class. Working it out yourself without hints builds the investigative habits that no walkthrough can give you.