Skip to content
XSS Disclosed report Beginner

[website] Script injection in newsletter signup https://brave.com/brave_youth_program_signup.html

A newsletter signup form on a website did not sanitise user input, allowing an attacker to inject HTML into the confirmation email sent to the user. An attacker could send phishing emails containing malicious links to users who sign up.

cmd-0_0 Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 20 days
  • Paid in 20 days
  • Disclosed after 22 days

go to https://brave.com/brave_youth_program_signup.html click become an ambasador insert malicious payloads in the fields <a href='evil,com'>YOU JUST WON 1m$ </a> you will receive a mail like in the image attached.

You can send phising emails and do other bad stuff.

If you need more details i'm here.

Attachments

htmlinj.png
htmlinj.png From the original on HackerOne

The original report as published on HackerOne, by cmd-0_0. 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 application failed to sanitise or encode user-supplied input before including it in the email body.

Impact

An attacker could send phishing emails containing malicious links to users who sign up, potentially tricking them into visiting harmful sites.

What the attacker needed

Access to the signup form

How it was found

  1. Go to the signup page.
  2. Click 'become an ambassador'.
  3. Enter a malicious HTML link in the form fields.
  4. Submit the form and receive a confirmation email containing the injected link.

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 something into a form, the website should treat it as plain text, not as code. Here, the form put the text directly into an email without cleaning it, so an attacker could add a clickable link that looks like a prize but leads to a bad site. This is called HTML injection, a type of script injection.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Brave Software

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.