Skip to content
CSRF Disclosed report Beginner

Prevent content spoofing on /~username/emails/verify.html

The email verification page reflected the user-supplied email parameter without validating its format, and the nonce token was not tied to a specific user. An attacker could craft a link that displayed arbitrary text as if it were an official message from Gratipay.

ishahriyar Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 13 months
  • Paid in 46 days
  • Disclosed after 16 months

Hi, When an user add his email then a verification link has been sent to that email. the link looks like this https://gratipay.com/~exampleuser/emails/verify.html?email=example%40gmail.com&nonce=cb2487f6-61cf-4a8a-81af-c8fab6fe0f90

The link has three changeable things.

  1. Username (ex: ~exampleuser)
  2. User's requested email (ex: example%40gmail.com)
  3. Nonce

But here the Nonce token is working for any user. Also you have missed to verify the email format So anyone can send fake messages to any gratipay user.

Steps to reproduce If you have an account on gratipay then navigate the url like this https://gratipay.com/~[your-user-name]/emails/

Then put your email address and click the button named "Add email address"

You will get an email copy the link https://gratipay.com/~exampleuser/emails/verify.html?email=example%40gmail.com&nonce=cb2487f6-61cf-4a8a-81af-c8fab6fe0f90

Now put some messages instead of your email in your link , Like this https://gratipay.com/~exampleuser/emails/verify.html?email=You Has been Sent. Hi This is official. You can get pro account by sending us 10 USD through our official paypal [email protected]&nonce=cb2487f6-61cf-4a8a-81af-c8fab6fe0f90

Just find a user from gratipay and put his name in the url instead of "exampleuser" Let's we have found a user named victimsusername

So the url will be this

https://gratipay.com/~victimsusername/emails/verify.html?email=You Has been Sent. Hi This is official. You can get pro account by sending us 10 USD through our official paypal [email protected]&nonce=cb2487f6-61cf-4a8a-81af-c8fab6fe0f90

Now send the link to the victim. Anyone can misuse your app by this scope to send fake messages.

If you need anymore information feel free to ask. Thanks.

The original report as published on HackerOne, by ishahriyar. 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

Impact

An attacker could send a link showing a fake official-looking message on a victim's Gratipay verification page.

What the attacker needed

A free Gratipay account; victim clicks a crafted link

The fix

The page should validate the email format and ensure the nonce is not usable for any user.

How it was found

  1. Log in to Gratipay and go to your emails settings page.
  2. Add an email address and submit the form.
  3. Open the verification email and copy the verification link.
  4. Replace the email value in the link with arbitrary text.
  5. Replace the username in the link with a victim's username.
  6. Send the modified link to the victim.

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.

A website page showed whatever text was placed in the email part of its web address. Because the security code in the link was not tied to one person, anyone could change the text to a fake message and send the link to someone else. The victim would see the fake message on the real Gratipay site.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by ishahriyar

View all

24 more disclosed reports, 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.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.