Skip to content
Path traversal Write-up Beginner

Uncovering Path Traversal in Devika v1: A Deep Dive into CVE-2024

The Devika v1 application had an unauthenticated endpoint that accepted a file path parameter without validation, allowing directory traversal. An attacker could read arbitrary files such as /etc/passwd.

Alperen Follow

Published on medium.com

Every researcher has a story of inspiration, and mine begins with Mehmet Dursun Ince (Mdisec), a cybersecurity expert whose work has profoundly influenced my journey. His insightful video on the daily routine of a security researcher (watch here) showed me the dedication and methodology required to uncover…

Alperen, 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

The application passed user-controlled input directly to a file-serving function without validating or sanitising the path.

Impact

An unauthenticated attacker could read sensitive files such as configuration files or credentials, potentially leading to privilege escalation.

What the attacker needed

None

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 web application lets users request a file by giving a path. If the app does not check that the path stays inside the intended folder, a user can use '..' to climb up the folder tree and read other files on the server. Here, anyone could do this without logging in.

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 Alperen

View all

1 more disclosed report, 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.