Skip to content
XSS Write-up Beginner

A Simple P4 Bug That Ended as Duplicate

The profile name field was not sanitised before being inserted into team invitation emails, so an attacker could inject HTML that loads an external image when the victim opens the email. This could be used for tracking, IP disclosure, and phishing.

medium.com

Published on medium.com

While testing redacted.com, I noticed something interesting around the profile name field. At first glance it looked like a normal input field — nothing special.

BugWraith (Lokesh), 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 failed to HTML-encode user input before embedding it in the email template.

Impact

The injected HTML could enable email open tracking, victim IP address disclosure, user-agent and device fingerprint leakage, and potential phishing enhancement.

What the attacker needed

A free account; ability to create or join a team; victim opens the invitation email

How it was found

  1. Log in and go to Account Settings → Profile.
  2. Edit the Name field and insert an image tag.
  3. Save the profile.
  4. Create or join a team/organization.
  5. Invite another user to the team.
  6. When the invited user opens the invitation email, the injected image loads.

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 you type your name into a website, the site should treat it as plain text. Here, the site put the name directly into an email without cleaning it, so if you typed HTML code, the email would show it as real formatting. That let an attacker make the email load a picture from a server they control, which reveals when the email is opened and from where.

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.