READ .svg files by changing .svg into .png extension
The upload rejected SVG by extension but not content, so renaming an SVG to PNG let it upload and render in the background photo area.
- Triaged in 9 hours
- Fixed in 5 days
- Paid in 7 days
- Disclosed after 7 months
Good Day, Instacart
In list and recipe we could see that we can upload a picture . It won't accept .svg files but by changing it to .png.
###Steps to Reproduce
- Create a list and recipe under accounts
- Upload a picture. We will upload an
svgbut with apngextension. I've attached ansvgfile please open it and save it asfile.png - Now upload the photo and you will then now see that the svg we have made is reflected in the background photo area.
Regards, TOM
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
Impact
An attacker could upload a crafted SVG that is rendered in the background photo area of the site.
What the attacker needed
An account; ability to create a list and recipe; ability to upload a picture
How it was found
- Create a list and recipe under an account.
- Prepare an SVG file but save it with a .png extension.
- Upload the renamed file as a picture.
- Observe the SVG being reflected in the background photo area.
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 site can check a file's name but not what is inside. Here the site only looked at the '.png' ending and let an SVG through, which then showed in the background photo area.
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.