Skip to content
Path traversal Write-up Intermediate

“From a 404 Page to $5k: How I Chained Forgotten Bugs Into a Cr

A path traversal flaw in a download endpoint allowed reading files within the admin directory, including the Java web.xml configuration, which exposed an incident-report endpoint that downloaded logs containing a password hash. After cracking the hash, the attacker accessed a Groovy console and used the log download to retrieve command output, achieving root access.

Aman Sharma Follow

Published on infosecwriteups.com

We’ve all been there — staring at what seems like a dead-end vulnerability, wondering if it’s even worth reporting. I almost made that mistake too, until one “low-risk” finding unexpectedly turned into my biggest bounty yet.

Aman Sharma, on infosecwriteups.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 download endpoint failed to properly restrict which files could be accessed, allowing traversal outside the intended directory and exposure of sensitive configuration and logs.

Impact

An attacker could read sensitive files, obtain admin credentials, and execute commands as root on the server.

What the attacker needed

Access to the admin download endpoint; ability to crack MD5 hash

The fix

The company patched the vulnerability within 48 hours, though the specific fix is not described.

How it was found

  1. Request the download endpoint with a filename parameter pointing to a JavaScript file to confirm file inclusion.
  2. Use the same endpoint to read the Java web.xml configuration file.
  3. Identify an incident-report endpoint that downloads system logs as a ZIP.
  4. Download the logs and extract a password hash, then crack it to obtain admin credentials.
  5. Access the admin panel and locate a Groovy console at export_step2.xhtml.
  6. Execute a command via the Groovy console and retrieve its output by downloading the logs again.

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 file download feature into reading files it should not, like configuration files. Here, the attacker used that to find a hidden log download that contained a password, then used an admin tool to run commands and read the results through the logs.

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 Aman Sharma

View all

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