Skip to content
XSS Disclosed report Beginner

HTML injection in email at https://www.hackerone.com/

The pentest community application form on the HackerOne website did not sanitise the first name and last name fields before inserting them into outgoing emails. An attacker could submit HTML tags in those fields and have them rendered inside an email sent by HackerOne to a chosen address.

iamr0000t Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 18 months
  • Paid in 18 months
  • Disclosed after 19 months

Summary: By filling the firstname and last name with html tags at this form https://www.hackerone.com/hackers/pentest-community-application

It is possible to send email via hackerone and add custom html :)

Description:

Steps To Reproduce

  1. visit https://www.hackerone.com/hackers/pentest-community-application
  2. in first name and last name add html tags ie firstname "><h1>anything etc.
  3. in email section add email of victim .
  4. submit the form
  5. check the email and see the html injected there

additional information:

1.) please check the screenshot to see both the emails ie 1 without payload and one with payload

Optional: Your Environment (Browser version, Device, etc)

Optional: Supporting Material/References (Screenshots)

Impact

An attacker can send malicious emails from hackerone , inject html in the email :) we all know where it leads to .

The original report as published on HackerOne, by iamr0000t. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the name fields were inserted into the email body without HTML-encoding, so user input was interpreted as markup by the email client.

Impact

An attacker could send emails from HackerOne containing attacker-controlled HTML.

What the attacker needed

Victim's email address; access to the public application form

How it was found

  1. Open the pentest community application page.
  2. Enter HTML tags in the first name and last name fields.
  3. Put the victim's email address in the email field.
  4. Submit the form.
  5. Open the received email and observe the injected HTML.

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 report has not been written yet. The Original tab links to the source.

A form on a website asked for your name and then used that name inside an email it sent out. The site did not clean up the name first, so if you typed HTML (the code that formats web pages) instead of a plain name, the email would treat it as formatting instructions. That lets someone put their own content, such as headings or links, into an email that appears to come from the company.

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 iamr0000t

View all

4 more disclosed reports, best first.

More from HackerOne

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.