Cross-Site Scripting in getMarketplacePurchaseFrame
The getMarketplacePurchaseFrame function does not properly filter the product block ID, allowing HTML injection. An attacker could craft a URL that injects an event handler and executes script in a victim's browser.
- Triaged in 4 days
- Fixed in 4 months
- Disclosed after 4 months
The $mp->getProductBlockID() variable in the getMarketplacePurchaseFrame function (view on Github) is not being filtered properly to protect against HTML injection/XSS.
This leads to XSS vulnerabilities in (for example) connect.php on line 14 (view on Github) when visiting a URL like: dashboard/extend/connect/"%20onmouseover="alert(document.cookie)">.
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
Impact
An attacker could execute script in a victim's browser when the victim visits a crafted URL.
What the attacker needed
Victim visits a crafted URL
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.
When a website puts user-supplied text into a page without cleaning it, an attacker can sneak in extra HTML or JavaScript. Here, a value used to build a purchase frame was not filtered, so a crafted link could run code in the browser of anyone who clicks it. This is called cross-site scripting, or XSS.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.