Skip to content
XSS Write-up Beginner

My First Bug Bounty: HTML Injection Got me 250$

The email invitation system did not sanitise the first name field before inserting it into the outgoing email, so HTML markup was rendered in the message. An attacker could send invites containing misleading or phishing-style content to a victim's inbox.

medium.com

Published on medium.com

As a budding security researcher, I’m thrilled to share the story of my first-ever bug bounty! This experience taught me the importance of thorough testing, reporting responsibly, and being part of a safer internet community.

Lakshya, 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 first name value was inserted into the invitation email template without HTML encoding or sanitisation.

Impact

The injected markup could be used to craft misleading invitation emails that support phishing, though the report only demonstrates simple formatting and the program rated it low severity.

What the attacker needed

A free account on the target site; ability to send workspace invitations

The fix

The first name and other user-supplied values should be HTML-encoded or sanitised before being placed into the email template.

How it was found

  1. Create an account on the target site.
  2. Set the first name field to a value containing HTML markup.
  3. Create a workspace and send an invitation to a test email address.
  4. Open the received email and observe that the markup was rendered.

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.

When a website takes something you type and puts it into a page or an email without cleaning it first, your text can be treated as instructions rather than plain words. Here the researcher typed a name containing simple formatting tags, and the invitation email displayed it as formatted text instead of showing the characters. That means someone could make an email look different from what the site intended, which is useful for tricking people.

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.