Pranav Hivarekar's Security Blog

REST-API Lover | Security Researcher | API Coder | Ambivert | GET /noob

Home     About      Favorite Books      Favorite Bugs     

HackerOne Bug - Redirect Filter Bypass and Open Redirector

What is Open Redirector ?

Open Redirect vulnerability allows attacker of an web application to redirect users to any external sites. Here, there is no validation of the passed input by attacker. This is basically used in phishing attacks.


Here, if there is no validation of 'url' parameter, it will redirect to ''. This is 'Open Redirector'.

Open Redirector on HackerOne

HackerOne made few changes recently. When any external link was posted in a report or as a comment, then after clicking it redirected to 'External link warning' page. After clicking 'Proceed', user is redirected to external link.


Now, if we make some changes to the link then it was becoming a 'Open Redirector'.

I reported this, but the HackerOne team said,


Then, I went to work on 'Redirect Filter'.

Redirect Filter Bypass

While I was working, I found that when any user posts an internal link i.e '' then it was placed in anchor tag as follows:

<a href="" title=""></a>

Now, if user posts an external link i.e '' then it was also placed in anchor tag as follows:

<a href="/redirect?signature=0030f1548bef809f5c6344a14559c98ec48213d2&amp;" target="_blank" title=""></a>

Note the '/redirect', it is 'Redirect Filter'.

Now, I started playing with '/redirect'. In the end, I found that by adding '../' to the link it bypassed 'Redirect Filter'. i.e ''
This was placed in anchor tag as follows:

<a href=";" title=";">;</a>

Here, it was bypassed.

Final Exploit

This exploit should work against any random victim (user) of HackerOne. So, using my mind, I got an idea of combining 'Open Redirector' and 'Redirect Filter Bypass' to create an exploit to damage other users.

Now, I posted a link i.e ''. It was placed in anchor tag as follows:

<a href=";" title=";">;</a>

This not only bypassed 'Redirect Filter' but also redirected users to external sites. HackerOne team resolved the issue in few working days and rewarded me for the same.

Video Proof Of Concept :

HackerOne Report :

I would like to Thank Michiel Prins (Co-founder of HackerOne), Jobert Abma (Co-founder of HackerOne) and whole HackerOne team for their enormous support everytime.

Hope you enjoyed this.