Skip to content
Path traversal Write-up Beginner

Path Traversal Paradise

The author found several path traversal and local file inclusion vulnerabilities across different applications, including one that allowed reading arbitrary files such as the hosts file and source code. An attacker could use these flaws to disclose sensitive files from the server.

Kuldeep Pandya Follow

Published on kuldeep.io

This blog will be about all the different kinds of Path Traversals and Local File Inclusion vulnerabilities that I have found in Synack Red Team.

Kuldeep Pandya (@kuldeepdotexe), on kuldeep.io

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 applications failed to properly validate or sanitise user-supplied file paths, allowing directory traversal sequences to escape the intended directory.

Impact

An attacker could read arbitrary files from the server, potentially disclosing source code, configuration files, and other sensitive information.

What the attacker needed

Authenticated access for some cases; no authentication for others

How it was found

  1. Log into the application and find the data import functionality.
  2. Upload a file and then use the read file feature, which allows changing the file name.
  3. Enter a path traversal payload such as '../Auth.aspx' to read a known file.
  4. Increase the number of '../' sequences until the file is returned.

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 program into opening files outside the folder it should be limited to, by using sequences like '../' to go up directories. Here, the author could read files like the system's hosts file or source code, which can reveal sensitive information.

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 Kuldeep Pandya

View all

8 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.