Skip to content
XSS Disclosed report Beginner

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.

melvin Follow

Originally disclosed on HackerOne

  • 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)">.

The original report as published on HackerOne, by melvin. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by melvin

View all

12 more disclosed reports, best first.

More from Concrete CMS

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.