Improper Input Validation Leads To Email Spamming
The profile first and last name fields had no character limit and were inserted into invitation emails without validation. An attacker could set the names to a spam or phishing message and send invitation emails from the company's official support address to any email, including existing users.
Published on akshayravic09yc47.medium.com
Hi Guys, In this article, I will share how did I found Improper Input Validation Leads To Email Spamming on my target (redacted.com)
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 validate or limit the length and content of the first and last name fields before inserting them into invitation emails, and the invite endpoint did not verify that the recipient was a new user.
Impact
An attacker could send spam or phishing emails from the company's official support address to arbitrary recipients, including existing users, potentially damaging the company's reputation and tricking recipients.
What the attacker needed
A user account; ability to edit profile names; access to the invite feature
How it was found
- Edit the first and last name fields on the profile.
- Set the names to a spam or phishing message.
- Use the invite function to send an invitation to an email address.
- Observe that the invitation email contains the injected names and is sent from the official support address.
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 sign up, the site lets you set a display name. That name was copied straight into invitation emails without checking its length or content. Because the site also sent those emails from its own support address and did not check whether the invited address belonged to a real user, someone could use the invite feature to send unlimited messages that looked like official company mail.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.