HexBrain

Gratipay · Report #151831

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

Duplicatestatus
12upvotes
24 Jul 2016disclosed

How it was found

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 {F105371}

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original