Waze arbitrary file upload
The Waze wiki allowed file uploads but only blocked certain MIME types, so an attacker could upload a SWF file containing malicious code. This could be used to execute an XSS attack when the file is viewed.
The original lives on blog.shashank.co
We do not hold its text, 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 upload filter only blocked a limited set of MIME types and did not block SWF files, which can contain executable script.
Impact
An attacker could upload a malicious SWF file and potentially execute XSS, though the text does not detail the full exploit or any defences.
What the attacker needed
Access to the Waze wiki upload feature
The fix
The bug was fixed, but the text does not describe how.
How it was found
- Find the Waze wiki page that allows file uploads.
- Try uploading a PHP file and observe the MIME type rejection message.
- Try uploading an SWF file and see that it is accepted.
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 website let people upload files but tried to stop dangerous ones by checking the file's type label. The author found that a Flash file (SWF) was not blocked, and such a file can run code in a visitor's browser, leading to an attack called cross-site scripting (XSS) where malicious script runs on the site.
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.