When Life Throws Errors, I Throw Commands: My Command Injection B
A parameter named filename was vulnerable to command injection, allowing an attacker to execute arbitrary commands on the server. The attacker used this to make the server send requests to an external server and to exfiltrate the /etc/passwd file.
Free Link🎈
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 passed the filename parameter directly into a shell command without sanitisation, allowing command injection.
What the attacker needed
Access to the filename parameter
The fix
The company patched the issue within a day.
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.
Command injection is when a web app passes user input to a system command without proper checks, letting an attacker run their own commands. Here, the filename parameter was used in a command, so the attacker could make the server run commands like curl to send data out.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.