How I Turned Government Website Into a Phishing Machine (And How
The contact form on a government site reflected attacker-supplied HTML into the confirmation email sent to the address entered in the form. An attacker could make the site send an official-looking email containing a fake support link that redirected to an attacker-controlled phishing page.
Ever wondered how even government websites can be turned into phishing weapons? Well, grab some popcorn because today I’m walking you through an HTML injection and open redirect vulnerability I found on Target’s contact form — one that could’ve been used for mass phishing attacks with panic-inducing efficiency.
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 contact form passed user-supplied message content into the outgoing email without sanitising or escaping it, and the link parameter allowed an open redirect.
Impact
Because the email came from the trusted domain, a victim could be tricked into clicking the fake support link and landing on an attacker-controlled phishing site; the author claims mass exploitation would be easy via automation.
What the attacker needed
Victim's email address known; attacker-controlled phishing site
How it was found
- Open the contact form on the target site.
- Fill in any name and the victim's email address.
- Put HTML containing a fake support link into the message field.
- Submit the form, which sends the crafted email to the victim.
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.
A contact form lets you type a message that the site emails back to someone. Here the site did not clean up the text first, so special formatting codes (HTML) typed into the message were treated as real content in the email. That let the sender add a clickable link that looked like official support but led to a fake site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.