Skip to content
Path traversal Write-up Beginner

Title: Exploiting Path Traversal Vulnerability in User Profile URLs

The application allowed users to register usernames that matched system file names such as index.php, and profile URLs were built directly from the username without sanitisation. An attacker could then make their profile appear at those paths, potentially defacing pages or enabling phishing.

kataeriidubstep Follow

Published on medium.com

Introduction: In the realm of web application security, path traversal vulnerabilities pose a significant threat to user data and system integrity. In this write-up, we delve into a particular instance of path traversal vulnerability discovered during security testing, highlighting its implications and potential…

Pavan kumar.G, on 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 did not validate or sanitise usernames against reserved file names and built profile URLs directly from user input.

Impact

The text claims this could lead to website defacement, phishing attacks through takeover of the login page, and information disclosure, though no actual exploitation is demonstrated.

What the attacker needed

Ability to register a new account

The fix

Developers should implement robust input validation and sanitisation and enforce access controls to prevent unauthorised access to system files and directories.

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 flaw lets someone use a name that points at a file the application uses internally, instead of a normal user name. Here, the site turned a username straight into a web address, so picking a name like a page file made the attacker's profile show up where that page should be. That could let them replace or imitate important pages.

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 kataeriidubstep

View all

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