Skip to content
Path traversal Disclosed report Beginner

Local file read in image editor

The image editor's /edit/process endpoint did not properly filter the imageid parameter, allowing directory traversal. An attacker could read arbitrary files on the server by supplying a crafted path.

sl1m Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 35 days

Summary by the program

Filepaths were able to traverse up outside of their intended directory when using the /edit/process API endpoint.

Summary by the researcher

Insufficient imageid filtration in image editor allowed an attacker to read arbitrary files. An attacker could read files by setting file path in imageid GET param in /edit/process API endpoint - http://imgur.com/edit/process?imageid=../../../../../../../../../../etc/passwd

The original report as published on HackerOne, by sl1m. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the application failed to validate or sanitise the imageid parameter, allowing path traversal sequences.

Impact

An attacker could read arbitrary files on the server, potentially exposing sensitive information.

What the attacker needed

Access to the /edit/process endpoint

The fix

The imageid parameter should be filtered to prevent directory traversal.

How it was found

  1. Send a request to the /edit/process endpoint with the imageid parameter set to a path that traverses 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 report has not been written yet. The Original tab links to the source.

A web application takes a file name from the user and uses it to open a file on the server. Because the name was not checked, an attacker could use '..' to go up folders and read any file the server can access, such as system password files.

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 sl1m

View all

1 more disclosed report, best first.

More from Imgur

View all

The newest disclosed reports for this program.

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.