Finding a $600 Remote Code Execution (RCE) on an E-Commerce Platf
An authenticated file upload feature for product imports relied on client-side validation and weak MIME-type checks, allowing a crafted file to be processed and executed by the backend. This resulted in remote command execution in the context of the web server user, with the potential for full server compromise.
During a recent authorized security assessment of a mid-sized e-commerce platform, I identified a Remote Code Execution (RCE) vulnerability that was later triaged and rewarded with a $600 bounty. While the payout itself was modest, the impact of the vulnerability was critical, with the potential for full server…
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 trusted client-side file-type restrictions and passed user-supplied file content to backend processing without proper server-side validation or sandboxing.
Impact
An attacker could execute arbitrary system commands, access sensitive customer and order data, modify pricing or payment workflows, and potentially pivot deeper into internal infrastructure.
What the attacker needed
Authenticated user account; access to file upload feature
The fix
The issue was patched promptly after responsible disclosure.
How it was found
- Test file-type restrictions by modifying file extensions, MIME types, and file structure.
- Observe that uploaded files are parsed automatically and user content is passed to backend logic without sanitisation.
- Upload a crafted file that bypasses validation and is executed during backend processing.
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 let logged-in users upload files, but it only checked the file type in the browser, not on the server. A malicious user could upload a file that the server then ran as a program, giving them control over the server. This is called remote code execution because the attacker can run their own commands on the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.