Reflected Cross Site Scripting (Awards 3500$ bounty)
A parameter in the Shopify GitHub integration setup URL was reflected into a JavaScript context without proper encoding, so a crafted link executed script in the victim's browser. An attacker could use this to run phishing or steal data from a logged-in owner or staff member who opened the link.
Published on jjainam16.medium.com
Hello, Hunters. You are here because you are struggling or want to advance in your career.
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
Root cause
Likely the installation_id parameter was inserted into a JavaScript context without encoding or validation, letting the value break out of the surrounding code.
Impact
An attacker could run script in the context of the Shopify GitHub integration page to conduct phishing or steal data from a logged-in owner or staff member.
What the attacker needed
Victim is logged in as owner or staff; victim opens a crafted link
How it was found
- Open the crafted setup URL with the tampered installation_id value and setup_action set to install.
- Log in with an owner or staff account.
- The script runs in the browser.
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.
When a website takes a value from the address bar and puts it into the page without cleaning it, an attacker can slip in their own script. Here the value was placed inside a script block, so the browser ran the attacker's code as if the site had written it. The victim has to be logged in and click a prepared link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.