Runtyme
All practice problems

Cybersecurity · Web security · Warm-up

Web security practice: Dot Dot Slash

Files are served by name. Any name, it turns out. Read a file outside the downloads folder.

The problem

  • Vulnerability class: Broken Access Control (path traversal).
  • Read a file outside the downloads folder.

You'll use: URLs & HTTP · Cookies & DevTools · SQL injection · XSS · Brute force · OWASP Top 10

Solve it (expert level)3–5 min · Read code — no writing
Show a hint

Look at the file= parameter and the Server log.

What this teaches (spoiler)

Never build file paths from raw input. Resolve them and make sure they stay inside the folder you meant.

Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.