Skip to content
RCE Write-up Intermediate

Found but a small recong

A parameter named filename on a web page allowed command execution, letting the reporter read sensitive files including recently uploaded data. The issue was reported and fixed by the backend engineer.

qa8453026 Follow

Published on medium.com

A few months ago, I found a web security program through my friend, who is a co-founder of a company. They connected me with the team because the CEO suspected that some data had somehow leaked.

sondip day, 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

Impact

An attacker could execute commands on the server and read sensitive files, including data uploaded the previous day.

What the attacker needed

Access to the web application; knowledge of the filename parameter

The fix

The backend engineer fixed the code after the report.

How it was found

  1. Discover subdomains using Subfinder.
  2. Check status codes and titles with httpx.
  3. Gather old endpoints with waybackurls.
  4. Manually browse pages and find a filename parameter.
  5. Test the parameter with payloads and observe command execution.

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 page had a part that took a file name from the user and used it in a system command without checking it. By putting special characters in that file name, an attacker could make the server run their own commands and read private files.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.