It Was Just a First Name… Until It Became a Trusted Phishing Ve
The First Name field of an organisation invitation form was reflected without validation or sanitisation into an invitation email sent from the company's own mail infrastructure. An attacker could therefore place a link and text of their choosing inside a genuine, trusted company email, raising the credibility of a phishing attempt.
Published on medium.com
During one of my bug bounty sessions, I came across a feature that looked completely harmless.
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 invitation form accepted arbitrary text in the First Name field and inserted it into the email template without validation, sanitisation or encoding.
Impact
An attacker could abuse the legitimate invitation workflow to send malicious content, including links, through trusted company emails, which may increase the success of phishing and credential theft; the text does not show a live exploit beyond the reflection itself.
What the attacker needed
Ability to invite members to an organisation; victim opens the invitation email
How it was found
- Open the organisation member invitation feature with its First Name, Last Name and Email fields.
- Enter a URL in the First Name field instead of a name and submit the form.
- Receive the automatically generated invitation email and observe the URL reflected as entered.
- Repeat with ordinary text placed before the URL and confirm both are reflected unchanged.
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 takes what you type and puts it into an email it sends, it should clean or check that text first. Here it did not, so someone could type a web link instead of a name and the company's own email would deliver that link to the invited person. Because the message really comes from the company, people are more likely to trust and click it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.