Skip to content
Open redirect Disclosed report Beginner

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.

akash_9021 Follow

Originally disclosed on HackerOne

  • Disclosed after 4 months

Hi,

I found a vulnerability in www.gratipay.com

Steps to reproduce:

  1. Login in gratipay using any social account which do not provide the email to gratipay.
  2. In my case i use twiiter.com, i got the message from gratipay that no Email id is associated with this account.
  3. Click on settings and change the username to the malicious site. (I used www.attacker.com)
  4. Click on the email.
  5. Add the Victim's Email Id.
  6. 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

Email_recieved_by_victim_gratipay.jpg
Email_recieved_by_victim_gratipay.jpg From the original on HackerOne

The original report as published on HackerOne, by akash_9021. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Log in to gratipay using a social account that does not provide an email address.
  2. Receive a message that no email is associated with the account.
  3. Go to settings and change the username to a malicious site's domain.
  4. Click on the email field and add the victim's email address.
  5. 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.

More by akash_9021

View all

1 more disclosed report, best first.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.