Skip to content
XSS Write-up Beginner

Refltected XSS primagames.com

A reflected cross-site scripting vulnerability was found in the search parameter of shop.primagames.com. An attacker could inject JavaScript to steal user information or redirect users to malicious sites.

Friendly Follow

Published on medium.com

Long story short, I’ve emailed them a few times, tweeted at them and no answer to fix their security.

Friendly, on medium.com

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 search parameter is reflected into the page without proper output encoding or sanitisation.

Impact

An attacker could inject custom JavaScript to steal information from Primagames users and lure them to malicious websites.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the search page on shop.primagames.com.
  2. Put a crafted XSS payload into the 'p' URL parameter.
  3. Load the URL in Firefox and observe the confirm(1) popup.

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.

Cross-site scripting (XSS) is a flaw where a website puts user input into a page without cleaning it, so an attacker can make the site run their own JavaScript. Here, the search box on the page reflected a crafted URL that made a popup appear, proving script execution. This could let an attacker steal data or trick users.

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 Friendly

View all

7 more disclosed reports, best first.

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.