Skip to content
File upload Disclosed report Beginner

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.

codertom Follow

Originally disclosed on HackerOne

  • 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

  1. Create a list and recipe under accounts
  2. Upload a picture. We will upload an svg but with a png extension. I've attached an svg file please open it and save it as file.png
  3. 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

The original report as published on HackerOne, by codertom. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create a list and recipe under an account.
  2. Prepare an SVG file but save it with a .png extension.
  3. Upload the renamed file as a picture.
  4. 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.

More by codertom

View all

3 more disclosed reports, best first.

More from Instacart

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.