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.
- 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
- visit https://www.hackerone.com/hackers/pentest-community-application
- in first name and last name add html tags ie firstname "><h1>anything etc.
- in email section add email of victim .
- submit the form
- 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 .
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
- Open the pentest community application page.
- Enter HTML tags in the first name and last name fields.
- Put the victim's email address in the email field.
- Submit the form.
- 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.