HTML Injection to Mass Phishing
The password field in the invite-user feature was not sanitised, so an attacker could inject HTML into the invitation email. The recipient would see a clickable link that could redirect them to a phishing site, and because there was no limit on adding users, this could be done at scale.
medium.com
Published on medium.com
HTML Injection vulnerabilities may not initially appear as severe as SQL Injection or Remote Code Execution, but their potential impact can be just as devastating when exploited creatively. In this blog, I will walk you through a real-world scenario where I discovered an HTML Injection vulnerability in the “Invite…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application inserted the password value into the invitation email without HTML-encoding it.
Impact
An attacker could send invitation emails containing a link to a phishing site, and since there is no limit on adding users, this could be used for mass phishing.
What the attacker needed
Ability to invite users; victim receives and clicks the email link
How it was found
- Go to the add-new-user page and fill in the new user's details.
- Intercept the request and replace the password field with an HTML link payload.
- Send the request and open the invited user's email inbox.
- Observe the rendered hyperlink in the email and click it to be redirected.
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 write-up has not been written yet. The Original tab links to the source.
When a website puts user-supplied text into an email or page without cleaning it, an attacker can include HTML tags. Here the password field was placed into an invitation email, so a link tag became a real clickable link. The invited person could be tricked into visiting a fake login page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.