Unauthenticated Account Takeover Through HTTP Leak
The password reset email template allowed unsanitised user input in the email body, enabling HTML injection. An attacker could inject an image tag that caused the victim's email client to send the password reset token to an attacker-controlled server, leading to account takeover.
#### Nik srivastava
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
The application failed to sanitise user-supplied input in the email body template, allowing HTML injection.
Impact
An attacker could take over any account by leaking the password reset token via the injected HTML in the email.
What the attacker needed
Victim opens the reset email; attacker controls a server to receive requests
The fix
The application should sanitise user input in the email body template to prevent HTML injection.
How it was found
- Send a password reset request with a crafted emailBody parameter containing an image tag that points to an attacker-controlled server.
- The server sends the reset email with the injected HTML.
- When the victim opens the email, the image tag loads and sends the password reset token to the attacker's server.
- The attacker uses the leaked token to reset the victim's password and take over the account.
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 you request a password reset, the app sends an email with a special link containing a secret token. The app let users put their own HTML into the email body without cleaning it. An attacker could put an image tag that secretly sends that token to their own server when the victim opens the email, letting the attacker reset the victim's password.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.