Skip to content
XSS Write-up Beginner

How I discovered Reflected XSS in GoldAcademy.

A reflected cross-site scripting flaw existed in the course page's query parameter, which echoed user input into the page without sanitisation. An attacker could craft a link that runs script in a victim's browser on the site's origin.

medium.com

Published on medium.com

GoldAcademy is a learning platform in Jordan, and I do hunting on it, and I discovered a vulnerability and I reported it, without no answer. No problem, we will just use it for educational purposes, not to harm the platform.

Lime, 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 course page reflected the value of the crs query parameter into the HTML response without encoding it.

Impact

An attacker could send a crafted link that executes script in a victim's browser in the context of the site, though the text gives no further detail on what that script could achieve.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Enumerate subdomains of the target using several online tools and a subdomain finder.
  2. Run an automated vulnerability scanner against the site, which flagged an XSS issue.
  3. Try many inputs on the site to locate the vulnerable one.
  4. Find that the course page's query parameter reflects script in the 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 write-up has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is when a website takes something a visitor typed or put in a link and shows it back on the page without cleaning it first. If that something is code, the browser runs it as if the site itself wrote it, so an attacker can make a link that does things on the site while pretending to be the victim.

What is XSS?

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

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.