Shopify reflected XSS
The Shopify photos site reflected any URL parameter value into an image tag's src attribute without sanitisation. An attacker could craft a link with a javascript: payload to execute script in the victim's browser.
Published on medium.com
this time i would like to share an XSS bug that i found at Shopify, the bug was relay easy to find if you read the source of the page, so i hope what i would like to share help you to find a bug ^^.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary JavaScript in a victim's browser when the victim visits a crafted link, potentially leading to data theft or other actions. The report does not specify any limitations.
What the attacker needed
Victim clicks a crafted link
The fix
The bug was fixed by pixieset.com, but the report does not describe the fix; it should be fixed by properly encoding or validating user input before inserting it into HTML.
How it was found
- View the page source and notice the pid parameter is included in an image tag.
- Add the pid parameter to the URL with a javascript: payload as its value.
- The payload executes, demonstrating XSS.
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 write-up has not been written yet. The Original tab links to the source.
A website took a value from the link and put it directly into the page's HTML without cleaning it. By using a special link that starts with 'javascript:', an attacker could make the browser run their code when someone clicked it. This is called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.