Skip to content
XSS Disclosed report Beginner

XSS at in instacart.com/store/partner_recipe

The image_url parameter on the partner_recipe page accepted a data URI containing HTML with a script, which executed when the image was opened. An attacker could craft a link that runs arbitrary JavaScript in the victim's browser.

ak1t4 Follow

Originally disclosed on HackerOne

  • Fixed in 4 days
  • Paid in 19 days
  • Disclosed after 19 days

Summary by the researcher

An XSS was injected at instacart.com/store/partner_recipe & image_url param with this awesome payload -> data%3atext%2fhtml%3bbase64%2cPHNjcmlwdD5hbGVydCgieHNzIik8L3NjcmlwdD4 :)

Thanks again to Karel Origin (https://twitter.com/Karel_Origin) for his report at https://hackerone.com/reports/196221, You made me think that more could be done, I owe you another beer :)

The report

Summary

Hi team, i found that this endpoint -> https://www.instacart.com/store/partner_recipe? at param image_url is vulnerable to XSS

Reproduction Steps & PoC

1)Go to https://www.instacart.com/store/partner_recipe?recipe_url=http://&partner_name=&ingredients[]=apples&ingredients[]=butter&ingredients[]=Splenda+Brown+Sugar+Blend&ingredients[]=cinnamon&ingredients[]=nutmeg&title="Barb%27s+Fried+Apples+-Diabetic-Low+Fat&description=&image_url=data%3atext%2fhtml%3bbase64%2cPHNjcmlwdD5hbGVydCgieHNzIik8L3NjcmlwdD4 2) Right Click on link "See Image" or open image in new window 3) You see the alert popup

Captura_de_pantalla_2017-05-11_a_las_21.32.33.png
Captura_de_pantalla_2017-05-11_a_las_21.32.33.png From the original on HackerOne
Captura_de_pantalla_2017-05-11_a_las_21.32.38.png
Captura_de_pantalla_2017-05-11_a_las_21.32.38.png

Vulnerable Enpoint : https://www.instacart.com/store/partner_recipe? Vulnerable Param: image_url Vulnerable Payload: data%3atext%2fhtml%3bbase64%2cPHNjcmlwdD5hbGVydCgieHNzIik8L3NjcmlwdD4

Tested on Browserss: Latest Firefox & Chrome

Let me know if more info needed or anything else,

king regards, @ak1t4

The original report as published on HackerOne, by ak1t4. 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

Root cause

Likely the application did not validate or sanitise the image_url parameter, allowing a data URI with HTML and JavaScript to be used as an image source.

Impact

An attacker could run script in a victim's browser when the victim opens a crafted link and opens the image, as shown by an alert.

What the attacker needed

Victim clicks a crafted link; victim opens the image in a new window

How it was found

  1. Visit the crafted URL with the malicious image_url parameter.
  2. Right-click the 'See Image' link or open the image in a new window.
  3. Observe the alert popup.

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.

Cross-site scripting (XSS) is when a website lets an attacker sneak in code that runs in other people's browsers. Here, the image_url parameter was supposed to hold an image address, but it also accepted a special data link that contained a script. When a user opened that link as an image, the script ran and showed an alert box.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by ak1t4

View all

17 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.