️ How I Earned a $600 Bug Bounty with Metasploit (Beginner-Frie
An outdated MediaLib plugin on an ecommerce site was vulnerable to unsafe deserialization, allowing remote code execution. The author demonstrated a harmless proof-of-concept that executed a command on the server.
Published on medium.com
👉 That MediaLib 2.0.1 plugin was outdated and had a known CVE for unsafe deserialization.
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 MediaLib plugin version 2.0.1 used unsafe deserialization of user input, which allowed remote code execution.
Impact
An attacker could execute arbitrary commands on the server, leading to full compromise.
What the attacker needed
Outdated MediaLib plugin version 2.0.1; network access to the target
The fix
The plugin was updated to a patched version and input validation was recommended.
How it was found
- Check the site's response headers and version info to find the plugin version.
- Set up a local lab with the vulnerable plugin and test the exploit with Metasploit.
- Send a crafted request to the real target's upload endpoint with a benign payload.
- Observe the command execution in the response.
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.
The website used an old plugin that had a known security flaw. This flaw let an attacker run commands on the server. The author showed it was possible by making the server run a simple harmless command.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.