Skip to content
XSS Write-up Beginner

XSS Restction bypass on Hackerone program

A reflected cross-site scripting vulnerability existed in a search box because user input was not properly escaped. An attacker could inject a script that executes in a victim's browser, potentially leading to session hijacking.

medium.com

Published on medium.com

Hello guys👋👋 In this article, I’m going to talk about a How to bypass XSS and lead to Reflect XSS bug I discovered in an HackerOne bug bounty program which i m going to represent as redacted that allowed me to get paid Reward 🫡� .

bugbounty_learners, 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 input was reflected into the page without proper HTML escaping, allowing injected attributes and event handlers to execute.

Impact

The most severe XSS attacks could disclose the user's session cookie, allowing an attacker to hijack the session and take over the account.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Go to the target site.
  2. Navigate to the search box and enter a test string.
  3. Inspect the page and note that the input is reflected without escaping.
  4. Craft a payload that breaks out of the attribute and adds an event handler.
  5. Trigger the XSS.

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 shows user input without making it safe, so an attacker can sneak in code that runs in other people's browsers. Here, typing a special text into the search box made the site run a script, which could let an attacker steal a logged-in user's session.

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.