Drifter Level 9
Drifter Level 9 — escalate privileges by working out a secret file format and exploiting security oversights.
Table of Contents
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Get ready to escalate those privileges. You’ll have to work out a secret file format and attack some security oversights.
Study guide
Where it fits: Drifter level 9 of 0–15, in the privileges and practice stage of the game. The page does not say which account you start as, so check with id after connecting.
What this level teaches
Local privilege escalation by combining format knowledge and configuration mistakes.
Key ideas
- Reverse the format. The program uses a file format that is not documented; you derive it from the code and examples.
- Security oversights. The weakness is not a single memory bug but mistakes in how the program trusts files and permissions.
- Enumerate. Look at permissions, ownership and what the program reads and writes.
How to approach it
- Trace the program to see which files it opens.
- Work out the format from the parsing code.
- Build a file that makes the program do something it should not.
Why it matters
Most real privilege escalations come from trust mistakes rather than exotic bugs.