How i tricked Crypto Trading Site into sending Dangerous email to it’s Users
The password-reset email reflected the requester's User-Agent string without sanitisation, so an attacker could inject HTML and CSS into the email body. This let the attacker place fake forms, misleading content, tracking elements and links into a legitimate email from the platform.
Rahulkrishnan_R_Panicker Follow
Published on medium.com
The vulnerability I discovered allowed me to perform several malicious activities, such as:
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 raw User-Agent value into the HTML body of the password-reset email without encoding or validating it.
Impact
Users could be tricked into entering credentials or following malicious links from a genuine platform email, potentially leading to account takeover, though the report gives no evidence of real-world exploitation.
What the attacker needed
Attacker can set their own User-Agent; victim opens the reset email
How it was found
- Start the forgot-password process for an account.
- Change the browser's User-Agent string to contain HTML and CSS.
- Submit the reset request so the email is generated.
- Open the received email and observe the injected content.
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 ask a site to reset your password, it sends you an email that includes details about your browser, called the User-Agent string. This site put that text into the email without cleaning it first, so someone could put their own formatting and links into the email. Because the email really comes from the company, users are more likely to trust the fake content inside it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.