Skip to content
XSS Write-up Beginner

Here is the story of how i found Stored XSS on a target

A team management module stored a team name containing a quote and an event handler without proper encoding, so when another user edited the team name the payload executed in their browser. An attacker could run JavaScript in a victim's session by saving a crafted team name.

pvnk24 Follow

Published on medium.com

Cross site scripting is vulnerability which Allows an attacker to execute the javascript inside the victim browser

Pavan K, 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 stored the team name without encoding quotes, allowing the value to break out of an HTML attribute and inject an event handler.

Impact

An attacker could execute JavaScript in the browser of a team member who edits the team name, potentially taking actions as that user.

What the attacker needed

Access to the team management module; victim opens the team name edit form

How it was found

  1. In the team management module, enter a simple HTML tag as the team name and submit it.
  2. Observe that the tags are removed, then test variations to understand the filter.
  3. Test a payload with a quote and an event handler as the team name and save it.
  4. Have another team member open the edit option for the team name, which triggers the stored script.

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 saves or shows user input without making it safe, so the input runs as code in another person's browser. Here, a team name containing a quote broke out of an HTML attribute and added a click handler, so editing the team name ran that code.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by pvnk24

View all

2 more disclosed reports, best first.

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.