Skip to content
XSS Write-up Intermediate

My First Triaged Report Ever

A search feature reflected user input without proper encoding, allowing an attacker to inject an image tag with an obfuscated event handler. A victim who clicked a crafted link could have JavaScript run in their browser, potentially stealing cookies or performing actions as them.

Mo_serag Follow

Published on medium.com

After months of learning web security, testing applications, and submitting reports that didn’t always go anywhere, I finally got my first vulnerability triaged. It wasn’t about the bounty — it was about validation and progress.

Moataz, 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 was reflected into the HTML without output encoding, and the firewall's pattern matching was bypassed with null bytes inside the event handler name.

Impact

Because the flaw is reflected, an attacker would need to trick a victim into clicking a crafted link, but doing so could let them steal session cookies, act as the victim, redirect them, or potentially take over the account.

What the attacker needed

Victim clicks a crafted link; victim is logged in

How it was found

  1. Find the article search feature and submit input to see if it is reflected in the response.
  2. Try a simple image tag with an event handler and observe the firewall returning a 403.
  3. Notice that writing an event handler assignment such as onerror= triggers the block.
  4. Craft a payload that breaks out of the HTML context and splits the event handler name with null bytes to evade the firewall.
  5. Confirm the injected image tag with the obfuscated handler executes in the browser.

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.

The website's search box put whatever you typed straight back into the page without cleaning it up. That meant a specially crafted link could make the page run code written by an attacker. If a logged-in user clicked that link, the attacker's code would run as if it were the website itself.

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.