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/natas7.md
URL /wargames/natas/natas7/
Date 2026-04-07

Natas Level 7

Natas Level 7 — a page parameter chooses which file is shown; learn about path traversal and local file inclusion.

Table of Contents

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

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

Study guide

Level map: sign in as natas7 and find the password for natas8.

What this level teaches

How an unvalidated filename parameter can be abused to read files the developer never meant to expose.

Key ideas

  • Parameters name files. A URL like index.php?page=something can cause the server to load a file by name.
  • Path traversal. Sequences such as ../ move up directories, letting a request escape the intended folder.
  • Absolute paths. Depending on how the server code is written, you may not even need traversal.
  • A hint is given. The page source tells you where the password is stored; the stated location is the route.

How to approach it

  1. Look at how the pages link to each other and what parameter changes.
  2. Read the source comment for the file location, then work out how to request it through the parameter.

How developers prevent it

Never build file paths from user input. Map user choices to a fixed allow-list of identifiers and resolve paths on the server.