Username can be used to trick the victim on the name of www.gratipay.com
A user could set their username to a malicious domain, which was then rendered as a clickable link in invitation emails sent from the trusted gratipay.com domain. An attacker could use this to send phishing emails that appear legitimate and trick victims into visiting a malicious site.
Originally disclosed on HackerOne
- Disclosed after 4 months
Hi,
I found a vulnerability in www.gratipay.com
Steps to reproduce:
- Login in gratipay using any social account which do not provide the email to gratipay.
- In my case i use twiiter.com, i got the message from gratipay that no Email id is associated with this account.
- Click on settings and change the username to the malicious site. (I used www.attacker.com)
- Click on the email.
- Add the Victim's Email Id.
- Done. Email Sent to Victim with attacker's malicious site or phising page.
Impact: Using this vulnerability an attacker can use a malcious script or a phising page to trick the victims. Username of gratipay (In case of this report attacker's site) will be renders as a link. Victim Just need to click on that link. since the email is from trusted domain like gratipay.com, victim will definitely want to click on the link which could be end up to takeover his account etc.
Fix: It can be fixed by do not allowing . (dot) in usernames of gratipay.
I also attached the screen shot of email sent for invitation to victim, in which account name is renders as a link.
Thanks, Akash Saxena
Attachments

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application allowed dots in usernames and rendered the username directly as a hyperlink in emails without validating or escaping it, so a username could be a full domain name.
Impact
An attacker could send phishing emails from a trusted domain that link to a malicious site, potentially leading to account takeover if the victim clicks the link.
What the attacker needed
A social account without email; ability to set a username; victim's email address
The fix
The application should not allow dots in usernames, or should properly validate and escape usernames before rendering them as links.
How it was found
- Log in to gratipay using a social account that does not provide an email address.
- Receive a message that no email is associated with the account.
- Go to settings and change the username to a malicious site's domain.
- Click on the email field and add the victim's email address.
- The victim receives an email from gratipay containing a link to the attacker's site.
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 report has not been written yet. The Original tab links to the source.
When you sign up for a website, you pick a username. This site showed that username as a clickable link in emails it sent to other people. An attacker chose a username that was actually a bad website's address, so the email looked like it came from the real site but the link led to the bad site. That makes it easier to trick someone into giving away their password.
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.