URL Redirection Attack With Examples

A URL Redirection is to bring the browser from one URL to another URL. For example, if a link at


brings you to


This is a URL Redirection.

A URL Redirection Attack is a kind of vulnerability that redirects you to another page freely out of the original website when accessed, usually integrated with a phishing attack.


and on clicking it will bring you to


This page could lead to a malicious page that resembles the original, and tries to trick the user into giving their credentials. Notice the “l” and “1”, which can catch some unwary users off-guard. This is a URL redirection attack.


– Yahoo!

This is a Yahoo! ad link I randomly picked to wherever at the Yahoo! main page :



Try change the red part as shown :



It will effectively brings you to Google main page. You might argue it is already suspicious for anyone to click that link, despite the authentic domain : http://us.ard.yahoo.com/ .

– Baidu

One more example, a very well-known search engine in China, Baidu. On its main page, it has a “Set as homepage” function :


which redirects you to its main page after clicking it.

Now, change the red part into below :


This will bring you back here! ( Oh I’m sorry =) )

Just imagine if this happens to some other larger site, it can be used to phish users personal information or redirect to malicious sites exploiting browser vulnerabilities infecting them.


If you search for “Log0” in Yahoo!, you will find me in rank 3 ( as of now ). Yahoo! redirects you to me through this :


Long link, notice https://log0.wordpress.com at the end. Now let’s change that link into http://www.google.com :


This will bring you to a 403 Forbidden in Yahoo! and warns you of the destination. In this case, Yahoo! checked the link if it matches that in database. That is a protection. Basically, it verifies whether or not the redirected destination is its original intent.

By now I hope you are familiar with what URL Redirection Attack is, and should have an idea how to prevent it.

Please do not use this for malicious purpose, I show these examples only for educational purposes. I have notified the above domain masters of the problems above.


I forgot to explain how the Google link went into it. That is URL obfuscation. More at here.

http://1089059683/ is actually the IP of a google web server. = http://www.google.com
64 * 256 + 233 = * 256 + 187 = * 256 + 99 = http://1089059683/


6 Responses to “URL Redirection Attack With Examples”

  1. 1 Josh January 11, 2009 at 3:06 pm

    First of all congratulation for such a great site. I learned a lot reading here today. I will make sure i visit this site more often so I can learn more.

    Make your long Urls shorter – Free Url redirection – Hide your affilate URLS

  2. 2 KD May 13, 2011 at 8:37 am

    I like it. Thanks!

  3. 3 sean July 18, 2011 at 3:47 pm

    Can you help me, please?

    I’m in China right now visiting family, and I was happily using my Tumblr when suddenly:


    This URL starts to plague my existence. Now, when I try to access Tumblr, I get redirected to Baidu. Could you help me? In simple terms, preferably, as I’m rather computer illiterate.


  4. 4 click May 26, 2012 at 3:04 pm

    I have got 1 recommendation for your website. It seems like right now there are a couple of cascading stylesheet troubles when opening a selection of web pages within google chrome and opera. It is functioning okay in internet explorer. Probably you can double check that.

  5. 5 drdoomslair July 5, 2012 at 3:58 pm

    Nice article but I don’t understand one thing:
    You usually say, “change this part with this part” but how can you change it?

    For example lets assume I am an attacker and I try to redirect the user to a phising site instead of the normal baidu home page. I must have access to the baidu source page so that my changes will persist and be able to achieve malicious redirects right?

    What is the standard practice for this?

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: