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


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
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
- Visit the crafted URL with the malicious image_url parameter.
- Right-click the 'See Image' link or open the image in a new window.
- 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.