Skip to content
Open redirect Disclosed report Beginner

User Supplied links on profile page is not validated and redirected via gratipay.

User-supplied links in profile statements were not validated or redirected through a warning page, so an attacker could link to a phishing site without the victim being warned they were leaving the trusted site.

roshanpty Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 7 days

User Supplied links on profile page is not validated and redirected via gratipay.

Description

The user profiles on gratipay has a profile statement section which is supported by markdown. An adversary can update the profile section with a hyper link URL to a malicious website. As gratipay doesn't redirect the request via a 302 redirect response if the adversary register a similar phishing website the user won't be aware that he/she is going out of the trusted site (gratipay)

Detailed Steps

Step 1: Update the profile statement with a URL hyperlink. Step 2: Click on the hyperlinked URL on the updated profile. It can be observed that the server issues no warning that the user is being redirected out of gratipay.

Solution

  • All user supplied URL's in the website must be redirected via the server only.
  • On implementing URL redirection, care should be taken that it is not vulnerable to Open Redirection OWASP Open Redirection
  • A warning should be issued when a user is clicking on a website outside the host website. For example in the below line I am hyperlinking SecVibe website to the text of URL of hackerone.com. It can be observed that on clicking the same, hackerone verifies if the same is in fact a site outside hackerone and issues a warning.

http://hackerone.com

2016-07-16_15_32_55-Leaving_HackerOne..._-_HackerOne.png
2016-07-16_15_32_55-Leaving_HackerOne..._-_HackerOne.png From the original on HackerOne

The original report as published on HackerOne, by roshanpty. 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 rendered user-supplied markdown links without any interstitial warning or server-side redirect that would alert the user they were leaving the site.

Impact

An attacker could direct users to a phishing site without warning that they were leaving the trusted site.

What the attacker needed

A user account to edit profile; victim clicks the crafted link

The fix

All user-supplied URLs should be redirected via the server with a warning page, taking care to avoid open redirection vulnerabilities.

How it was found

  1. Update the profile statement with a URL hyperlink.
  2. Click on the hyperlinked URL on the updated profile.

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 click a link on a website, you usually expect to stay on that site or at least be warned before leaving. Here, the site let users put any link in their profile, and clicking it took you straight to another site with no warning. That made it easy for someone to trick you into visiting a fake site that looked like the real one.

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 roshanpty

View all

7 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.

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.