Cross-Site Scripting Reflected On Main Domain
A reflected cross-site scripting vulnerability was found in the utm_source parameter on the main domain. An attacker could inject script code that executes in a victim's browser when they visit a crafted link.
Originally disclosed on HackerOne
- Triaged in 38 hours
- Fixed in 42 hours
- Paid in 42 hours
- Disclosed after 10 months
Hi Security Team instacart
I'm Found Have Vulnerability Cross-Site Scripting Reflected on Main Domain in Variable utm_source
POC
https://www.instacart.com/green-zebra-grocery?utm_source=>"'><script>alert(/Hussain/)</script>&utm_medium=>"'><script>alert(/XSS/)</script>&utm_campaign=>"'><script>alert(/injection/)</script>
Img :- http://i.imgur.com/wSn4EU7.jpg
Test :- FF - IE
Regards @Hussain
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 reflects the utm_source parameter into the HTML response without proper output encoding or sanitisation.
What the attacker needed
Victim clicks a crafted link
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 takes input from a link and puts it into the page without cleaning it, so an attacker can make the page run their own JavaScript. Here, the utm_source value in the URL was reflected into the page, allowing script tags to run.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.