Unrestricted File Upload Leads to RCE on mobile.starbucks.com.sg
An .ashx endpoint on mobile.starbucks.com.sg that was meant for image files allowed uploads of any file type. An attacker could upload a malicious file, potentially leading to remote code execution.
Originally disclosed on HackerOne
- Triaged in 22 hours
- Fixed in 9 days
- Paid in 9 days
- Disclosed after 34 days
Summary by the program
ko2sec discovered an .ashx endpoint on mobile.starbucks.com.sg intended for image files permitted unrestricted file type uploads which could lead to a potential RCE. ko2sec's thorough analysis provided additional endpoints on other out of scope domains that shared this vulnerability.
@ko2sec — thank you for reporting this vulnerability and for confirming the resolution.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the upload endpoint did not check the file type or extension, allowing any file to be stored and possibly executed.
Impact
An attacker could upload a malicious file and potentially achieve remote code execution on the server.
What the attacker needed
Access to the upload endpoint
The fix
The report says the vulnerability was resolved, but does not describe the fix.
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 report has not been written yet. The Original tab links to the source.
A file upload feature on a website let people upload any kind of file, not just pictures. This could potentially lead to remote code execution, where an attacker runs code on the server.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.