Skip to content
XSS Write-up Beginner

How I Found My First Bug Stored Xss and Earned My First Bounty 1000$

A stored cross-site scripting flaw existed in the chat messaging feature of Badoo, where a message containing an image tag with an error handler executed script when viewed. An attacker could send such a message to a victim, causing the script to run in the victim's browser and potentially access their cookies.

Nazmul Haque Follow

Published on medium.com

Bounty$1,000 View original

Nazmul Haque

Nazmul Haque, 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

Impact

An attacker could execute arbitrary JavaScript in the context of a victim's session, potentially stealing cookies or performing actions on their behalf.

What the attacker needed

A free account; victim views the message

How it was found

  1. Create an account on Badoo.
  2. Visit a user profile and send a message containing an XSS payload.
  3. Click the 'chat now' option to view the message.
  4. Observe the script executing in the response.

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.

Stored cross-site scripting (XSS) happens when a website saves user input, like a chat message, and later shows it to other people without cleaning it. If the input contains code, the browser runs it as if the website itself had written it. Here, a message with a broken image and an error handler ran a script that showed the viewer's cookies.

What is XSS?

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

More from Badoo

View all

The newest disclosed reports for this program.

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.