Open Redirect via Image Upload
An uploaded SVG image was served from the site's own domain and its onload handler ran in the browser, sending the visitor to an attacker-chosen address. The author calls this an open redirect, though the mechanism is script execution inside the SVG rather than a server-side redirect parameter.
Published on medium.com
Hi, welcome back to another blog. In this blog, we’re going to know how I found my (Open Redirect)in the external program.
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 upload feature accepted SVG files and served them from the site's own origin without sanitising or neutralising the script inside them.
Impact
A victim who opened the uploaded image in a browser could be sent to an attacker-controlled site; the text does not say whether any browser or defence limited this.
What the attacker needed
Ability to upload a profile picture; victim opens the uploaded image
How it was found
- Upload an SVG image through the profile picture function.
- Intercept the upload request and inject a payload into it.
- Complete the image upload.
- Open the uploaded image in a new tab, which triggers the redirect.
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 a profile picture and accepted a picture format called SVG, which is really a small text file that can contain instructions for the browser. Because the site showed that file from its own address, the instructions ran and sent the viewer to another website chosen by the attacker. The author calls this an open redirect, meaning a way to bounce a visitor to any site, but here it works by running code in the page rather than by a redirect link.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.