Open URL Redirection

open Url Re direct

URL Redirection is a vulnerability which allows an attacker to force users of your application to an untrusted external site. also known as “Unvalidated Redirects and Forwards”, Also redirection is a technique for shifting users to a different web page than the URL they requested.

An Open Redirection vulnerability is when the attackers can control to where a victim is redirected when using a web application, thus allowing them to redirect the victim to malicious websites controlled by the attackers.

When this vulnerability arises.

Open redirection vulnerabilities arise when an application incorporates user-controllable data into the target of a redirection in an unsafe way.

Unvalidated redirects and forwards are possible when a web application accepts untrusted input that could cause the web application to redirect the request to a URL contained within untrusted input.

By modifying untrusted URL input to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials.

An attacker can construct a URL within the application that causes a redirection to an arbitrary external domain.

Types of URL redirections:


Parameter based URL redirection is the most common and easy to spot. There are two behaviours which contribute to this issue: Eg:

1. A GET parameter containing a URL/URI.

2. A 302/301 redirect made using that parameter.


Ever click a link within an application, only to find out your session has terminated? Many applications will give the courtesy of preserving the last URL they viewed, and redirect them to that location after they authenticate. This feature is useful, but is commonly the source of URL Redirection vulnerabilities. Eg:




Remember that JavaScript can obtain data directly from the browser. A URL in your web browser such as, does not send #dashboard to the application. In fact, you can verify this with Burp

How to find open redirect? Example scenario 1

1. If the Application have a user Sign-In/Sign-Up feature, then register a user and log in as the user.

2. Go to your user profile page , for example :

3. Copy the profile page’s URL

4. Logout and Clear all the cookies and go to the homepage of the site.

5. Paste the Copied Profile URL on the address bar

6. If the site prompts for a login , check the address bar , you may find the login page with a redirect parameter like the following.



Possible open redirect parameters Payloads

Should Replace by specific url or IP
































Open Redirect Vulnerable Payloads

Should Replace or or or localdomian by specific url or IP





How to bypass filters?

If periods are being stripped by the filter so that becomes evilcom, try converting the ip address to decimal notation form.


2. ( By using the character (%E3%80%82 url encoded) instead of a normal dot in urls, it is possible to bypass the blocking. )

Remediation: Open redirection.

  • Whitelisting urls
  • Remove the redirection function from the application, and replace links to it with direct links to the relevant target URLs.
  • Maintain a server-side list of all URLs that are permitted for redirection.

Recommended open redirect bypass tool





A white hat Hacker...!!!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Creating a Todo Chrome Extension with React, Custom Hooks and Local Storage

A Quick Intro to React Hooks

N ways to debug React Native app

How to Load Images to Cut Page Time

Introduction to React

AEM: Creating custom Granite render conditions

Pudding Bootcamp: Part III

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akash Venky

Akash Venky

A white hat Hacker...!!!

More from Medium

A Peculiar Case of XSS and my first bug

BruteLoops — Protocol Agnostic Online Password Guessing API

VulnHub Walkthrough’s : BOX 1

Understand Broken Authentication in 3 minutes