Skip to content
XSS Write-up Beginner

How i got my First Bug Bounty Reflected XSS

A reflected cross-site scripting vulnerability was found in a URL parameter, allowing an attacker to inject and execute arbitrary JavaScript in a victim's browser. The attacker could steal cookies or perform actions on behalf of the user.

medium.com

Published on medium.com

so want to share my first bug bounty in YESWEHACK private program so first i Open all scope in firefox tab and also open burp suite intercept on for capture data. I found a interesting endpoint like that: https://example.com/test-resource/index.php?canal=pfHvul543224thsbh

Shihabherok, 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 application reflected user input from the 'canal' parameter into the HTML response without proper encoding or validation.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking or other client-side attacks.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the target endpoint with the 'canal' parameter in a browser.
  2. Insert a script payload into the parameter value.
  3. Forward the request and observe the payload executing.

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 took a value from the web address and put it directly into the page without cleaning it. This let the tester insert a small script that the browser ran, which could let an attacker do things like read the user's session or act as them.

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.