Press enter to see results or esc to cancel.

How to bypass Open Redirection Protection

Hi Guys,

Here I’ll be talking about a nice vulnerability that I found couple of months ago in Linkedln. Before jumping into the vulnerability, let me quickly brief you about Open Redirection-

Open redirection vulnerabilities arise when an application incorporates user-controllable data into the target of a redirection in an unsafe way. An attacker can construct a URL within the application that causes a redirection to an arbitrary external domain. An example of a vulnerable website link could look something like this: =

In this example, “vulparam” parameter indicates where to send user upon successful login. If website doesn’t validate the “vulparam” parameter value to make sure that target web page is legitimate and intended, attacker could manipulate that parameter to send a victim to a fake page crafted by attacker: https://xyzcom/login.html?vulparam=

But bypassing Linkedln open redirection was not that easy. The vulnerable URL was —

Linkedln has indeed some good protection against open redirection since I was not able to bypass using some common techniques like

url=../ , url= /// , url= ///

Now simply changing the “url” value to any malicious site won’t work here. As you can see there is an extra parameter “urlHash” which looks like some hash value for the URL to which the user getting redirected so if “urlHash” value is the actual valid hash value for the “url” then only successful redirection will take place. One thing was clear till now basic techniques were not going to do anything good and then I went back to the raw request to find some help —

Open Redirection Raw Request

The request includes the “referer” field, which indicates the last page the user was on (the one where they clicked the link) and here something striked my mind- “How about changing the referer header value and see whether the validation working there?” . So I quickly jumped into it and changed the header value to some other domains and [face palm] still no luck. :/ .

Let’s give one more try , I searched for LinkedIn android app referer and found the following link- and there came across LinkedIn android referer value as “ android-app://” . I used the referer value in the “referer” header field and the rest is as below 😀 —

Successful redirection and yeah finally I managed to bypass the Open redirection protection of LinkedIn 🙂

Report details-

11-Nov-2017 — Bug reported to the concerned company.

07-Dec-2017 — Bug was marked fixed.

21-Dec-2017 — Re-tested and confirmed the fix.

Thanks for reading!

~Logicbomb (