Skip to content
XSS Disclosed report Beginner

html injection in [https://edoiu.doi.gov/login/signup.php]

The signup form's username field accepted HTML markup, which was later rendered unescaped in the account-approval email. An attacker could send a crafted username so that the official email contained attacker-controlled formatting or links, aiding phishing.

Ameya Andhare Follow

Originally disclosed on Bugcrowd

  • Accepted in 32 hours
  • Fixed in 44 days
  • Disclosed after 43 days

Summary by CryptoKnight028

HTML injection via confirmed account email

Report details

  • Submitted

    08 Nov 2021 16:12:26 UTC

  • Target Location

    *.doi.gov

  • Target category

    Web App

  • VRT

    Server-Side Injection > Content Spoofing > Email HTML Injection

  • Priority

    P4

  • Bug URL

    https://edoiu.doi.gov/

  • Description

    Hi team, I found html injection on edoiu account request approved email .

    Steps_to_produce :

    1. Go to page (https://edoiu.doi.gov/login/signup.php)
    2. Type html payload in "username" field
    <h1>USERNAME</h1> or <a href="www.evil.com"> 3) Then click on request account 4) After 1-2 days ,account approved mail will come in that you can see html code is executed in mail .

    Impact :

    1. This vulnerability can lead to the reformatting/editing of emails from an official email address, which can be used in targeted phishing attacks.
    2. This could lead to users being tricked into giving logins away to malicious attackers.

    Image is attached as poc .

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

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 username value was inserted into the approval email's HTML without encoding or sanitisation.

Impact

The report claims this could reformat official emails and support targeted phishing, potentially tricking users into giving away logins.

What the attacker needed

Ability to submit a signup request; wait for account approval email

How it was found

  1. Open the signup page.
  2. Enter HTML markup in the username field.
  3. Submit the account request.
  4. Wait for the account-approval email and observe the rendered 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.

When a website puts user input into a page or email without cleaning it, the browser treats that input as code. Here the username was placed into an approval email, so HTML tags in the name were displayed as real formatting or links. This lets an attacker make an official-looking email contain their own content.

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 Department of Interior: Vulnerability Disclosure Program

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.