Skip to content
XSS Write-up Beginner

From XSS Alert to Recognition: Lessons from My First SOC Investig

An attacker sent a reflected cross-site scripting payload in a search query parameter, but the organisation's security policies blocked every attempt with 403 or 302 responses. The attack was unsuccessful, though the logs showed the attacker tried multiple payload variations from the same IP.

Gift Afortu Follow

Published on cyberva.medium.com

Sometimes, the best lessons come from alerts that almost go unnoticed. On my SOC Analyst journey with LetsDefend, I recently encountered my first Cross-Site Scripting (XSS) investigation — and it became a small but meaningful milestone in my growth.

Gift Afortu, on cyberva.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 page reflected user input without proper sanitisation, but existing security policies blocked the payloads before they could execute.

Impact

The attack was unsuccessful because security policies blocked or redirected all requests, so no script executed in a victim's browser.

What the attacker needed

Victim clicks a crafted link; attacker can send requests to the search endpoint

How it was found

  1. The attacker visited the about-us page first.
  2. The attacker sent requests with XSS payloads in the q search parameter.
  3. The attacker tried multiple variations of the payload from the same IP.
  4. The organisation's security policies returned 403 Forbidden or 302 Redirect for each request.

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, or XSS, is when an attacker tricks a website into running their own small program (script) in a victim's browser. Here the attacker put a script inside a search link, hoping the site would echo it back and run it. The site's defences stopped every attempt, so nothing bad happened.

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.