Skip to content
XSS Write-up Beginner

How I Reported My First Vulnerability

A forgotten subdomain ran an outdated WordPress version with a known reflected XSS flaw in a search parameter. An attacker could inject script that executes in a victim's browser.

medium.com

Published on medium.com

Today, I want to share the story of how I reported my very first valid vulnerability.

whitedaysec, 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 outdated WordPress version failed to sanitise the search parameter before reflecting it into the page.

Impact

An attacker could run script in a victim's browser via a crafted search link, though the text gives no further detail on what that script could achieve.

What the attacker needed

A forgotten subdomain running old WordPress; victim clicks a crafted search link

The fix

The report was accepted and the issue was resolved, presumably by patching the outdated WordPress installation.

How it was found

  1. Collect subdomains during recon and check each one.
  2. Find a hidden domain with a search box using a URL parameter.
  3. Notice the site runs an old WordPress version with a known XSS CVE.
  4. Enter a script payload in the search parameter and see the alert fire.

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) lets an attacker slip their own JavaScript into a page other people view, so it runs in the victim's browser. Here the search box echoed whatever was typed into the page without cleaning it, so a script tag in the search term ran as code.

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.