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.
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 :
- Go to page (https://edoiu.doi.gov/login/signup.php)
- Type html payload in "username" field
Impact :
- This vulnerability can lead to the reformatting/editing of emails from an official email address, which can be used in targeted phishing attacks.
- This could lead to users being tricked into giving logins away to malicious attackers.
Image is attached as poc .
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
- Open the signup page.
- Enter HTML markup in the username field.
- Submit the account request.
- 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.