Skip to content
XSS Disclosed report Beginner

HTML injection in email content during registration via FirstName/LastName parameter

The registration form did not sanitise the First Name field, so HTML markup entered there was rendered inside the email sent during sign-up. An attacker could inject arbitrary HTML into that email content.

Ibrahim Auwal Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 4 months
  • Disclosed after 5 months

Summary:

Hi, I just found an issue when register account in https://mtnmobad.mtnbusiness.com.ng/#/auth/registerUser It allows an attacker to inject malicious text include html code in email content.

Steps To Reproduce:

  1. Go to https://uat.id.manulife.ca/mortgagecreditor/register?ui_locales=en-CA.
  2. Use the following payload as your First Name:
  3. Put the following code as first name:
<h1>Ibrahim</h1>
  1. Fill other forms and submit
Capture.PNG
Capture.PNG From the original on HackerOne

Impact

html code injection

The original report as published on HackerOne, by ibrahimatix0x01. 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 First Name value was inserted into the email body without HTML encoding or sanitisation.

Impact

Injected HTML was rendered in the registration email; the report does not show script execution or any further effect.

What the attacker needed

Ability to submit the registration form

How it was found

  1. Open the registration page.
  2. Enter HTML markup as the First Name.
  3. Complete the remaining fields and submit the form.

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.

When you type your name into a sign-up form, the site later puts that text into an email. If the site does not clean the text first, someone can type HTML (the code that formats web pages) instead of a plain name, and the email will display it as real formatting rather than as harmless text.

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 Ibrahim Auwal

View all

12 more disclosed reports, best first.

More from MTN Group

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.