Html Injection Inside Email Body The First Bug I Hunted In A Bug Bounty Platform
The application allowed users to enter any email address and unsanitised product information that was embedded into the email body, resulting in HTML injection. An attacker could send crafted emails from the target's official email address to conduct phishing or malware distribution.
Published on infosecwriteups.com
Today, I got my first Bug at Hackerone which is really interesting for me, and hope it will be the same for you too!
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 failed to sanitise user-supplied product information before embedding it into the email body, and also allowed arbitrary recipient email addresses.
Impact
An attacker could craft malicious emails that appear to come from the target's official email address, enabling social-engineering attacks such as phishing or malware installation, potentially causing reputational and financial loss.
What the attacker needed
Access to the sell-used-electronics feature; ability to intercept requests (e.g., Burp Proxy)
How it was found
- Enter random product information to sell and capture the request responsible for email generation using Burp Proxy.
- Inject HTML tags into parameters that get reflected in the email body.
- Observe that the injected HTML tags are rendered in the email body sent to the victim (your personal email).
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 type information into a website, it should be cleaned before being shown to others. Here, the site put your text directly into an email without cleaning it, so someone could add hidden instructions (like a fake link) that appear in the email. This lets an attacker send a convincing fake email from the company's real address.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.