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.
Cross site scripting is vulnerability which Allows an attacker to execute the javascript inside the victim browser
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
- In the team management module, enter a simple HTML tag as the team name and submit it.
- Observe that the tags are removed, then test variations to understand the filter.
- Test a payload with a quote and an event handler as the team name and save it.
- 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.