Skip to content
Path traversal Write-up Beginner

How I Earned $700 in Just 10 Minutes by Finding a Path Traversal Vulnerability

A file download endpoint accepted a user-supplied filename without proper sanitisation, allowing directory traversal. An attacker could read arbitrary files outside the intended directory, such as system password files.

theindiannetwork Follow

Published on theindiannetwork.medium.com

Imagine making $700 in just 10 minutes by identifying a simple yet critical security flaw. In this article, I will walk you through how I discovered a Path Traversal Vulnerability, reported it responsibly, and secured a handsome bounty.

TheIndianNetwork, on theindiannetwork.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application passed user input directly into a file path without validating or restricting it to the intended directory.

Impact

An attacker could read files outside the web directory, potentially exposing sensitive system information.

What the attacker needed

Access to the download endpoint; no authentication mentioned

The fix

The application should validate and sanitise user-supplied file paths, for example by restricting access to a whitelist of allowed files or using a safe path resolution method.

How it was found

  1. Send a request to the download endpoint with a normal file parameter.
  2. Change the file parameter to include directory traversal sequences.
  3. Observe that the server returns sensitive system information.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A path traversal bug lets someone trick a website into reading files it should not show, by using special folder shortcuts like '../' in a request. Here, the download link took a filename from the user and did not check it, so the attacker could ask for a system file instead of the intended report.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by theindiannetwork

View all

23 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.