Phishing via Error Message — When UI Messages Become Attack Surfaces
The error parameter in an OAuth authorisation endpoint was reflected into the HTML page without sanitisation, allowing an attacker to inject arbitrary text and links. An attacker could craft a URL that displays a legitimate Porsche-branded error page containing a phishing link, tricking users into visiting malicious sites.
Published on medium.com
While testing the Porsche web infrastructure under their responsible disclosure program on HackerOne, I stumbled upon an unusual but impactful phishing vector — one that didn’t rely on traditional forms, XSS, or redirections. Instead, it hid in plain sight — the error message displayed by the server itself.
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 reflected user-controlled input from the error parameter into the HTML response without any output encoding or sanitisation.
Impact
Users could be tricked into visiting malicious sites disguised as official pages, potentially compromising credentials or personal data, and causing brand abuse and trust damage.
What the attacker needed
Victim clicks a crafted link; attacker can send links via email or social engineering
The fix
The application should sanitise and encode user-supplied input before displaying it, apply strict whitelisting for parameters like error, use generic user-facing messages, and consider implementing a Content Security Policy.
How it was found
- Craft a URL to the authorisation endpoint with a redirect_uri parameter containing a malicious link and a message.
- The server displays an error page that includes the attacker-controlled text and link.
- A victim visits the crafted URL and sees a legitimate Porsche-branded error page with the phishing link.
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 shows an error message, it sometimes takes text from the web address (URL) and puts it directly on the page. If that text is not cleaned, an attacker can put their own message and a link to a fake site there. Because the page looks like the real company's site, users may trust the fake link and enter their details.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.