Open Redirection on Uber.com
The Uber website allowed open redirection when a URL contained a double slash followed by an IP address, causing the browser to navigate to that IP address. An attacker could craft a link that appears to be on Uber.com but redirects to a malicious site.
- Triaged in 2 days
- Fixed in 13 days
- Paid in 45 days
- Disclosed after 55 days
There seems to be an open redirection on Uber.com
When a user uses https://www.uber.com//google.com/cities it will lead to a Page Not Found on the Uber website but if the google.com is changed to an IP address such as https://www.uber.com//216.58.217.206/[param] it will lead to either a 404 or an SSL error depending on what kind of website you are trying to reach.
But remove the https:// and now you will be able to reach any website with the IP address. uber.com//216.58.217.206/calendar will redirect to Google's Calendar without any of the SSL error or 404 error.
Also for an hyperlink to be activated the attacker can send the URL http://uber.com//216.58.217.206/calendar (changing the https -> http)
Proof of Concept: A user can be sent a URL link that can lead to malicious content. The user will believe the link is trust-worthy because it still has the name of Uber.
What the report shows
The target is Uber's main website, www.uber.com, and the behaviour involves a path that begins with a double slash. The researcher reported an open redirection and was awarded a bounty of 500.00 USD. The report does not give a severity rating or describe a fix.
The behaviour is easiest to see with a normal hostname in the path. Requesting:
https://www.uber.com//google.com/cities
returns a Page Not Found page on the Uber website. The hostname in the path is not treated as a redirect target.
Replacing the hostname with an IP address changes the result. A request such as:
https://www.uber.com//[redacted]/[param]
leads to either a 404 or an SSL error, depending on the kind of site being reached. The researcher does not explain why the two forms differ, only that the IP form behaves differently from the hostname form.
The decisive step is dropping the scheme. With the https:// removed, the same IP-based path reaches the destination without the SSL error or the 404:
uber.com//[redacted]/calendar
According to the report, this redirects to Google's Calendar. The researcher also notes that an attacker can make the link clickable by switching the scheme to plain HTTP:
http://uber.com//[redacted]/calendar
The proof of concept is social rather than technical: a user can be sent a URL that leads to malicious content, and because the link still carries the name of Uber, the user believes it is trustworthy.
Root cause
Impact
The impact described is that a user can be sent a link that leads to malicious content while believing it is trustworthy because it carries the name of Uber. The report frames this as the user being led to malicious content while believing the link is trustworthy.
How this kind of bug works
An open redirect exists when an application takes a destination from the request and sends the browser there without checking that the destination belongs to the application. The destination usually arrives in a query parameter, a path segment, or a form field used after login or logout. The browser then follows a Location header or a client-side navigation, and the address bar ends up on a domain the application does not control.
The // form is a common bypass. In URL syntax, a reference that starts with two slashes is network-path (protocol-relative): the browser keeps the current scheme and takes the following component as the authority. So //example.org/path means "same scheme, host example.org". Validators that only look for http:// or https://, or that check whether the value starts with a slash, can be fooled by this form. Backslashes, encoded characters, userinfo (user@host), and whitespace or control characters are other classic tricks that change how a parser splits the URL compared with how the validator read it.
The defences are allowlists of permitted destinations, or restricting redirects to relative paths that are parsed and re-serialised by a trusted URL library before use, plus rejecting any value whose resolved host differs from the application's own.
How to test for it
- Map every place the application sends the browser somewhere else: login and logout flows, link shorteners, share buttons, language and region switchers, OAuth and SSO callbacks, "return to" parameters, and error pages that offer a way back.
- For each, identify the parameter or path segment that carries the destination.
- Send a value pointing at a host you control and observe the response. Check the
Locationheader on the raw response, not just what the browser renders, and follow the redirect with redirects disabled so you see each hop. - Try the bypass forms in turn: absolute URL with scheme, protocol-relative
//host, a single leading slash followed by a host, backslash variants, encoded slashes and dots, userinfo before the host, and a host that merely contains the trusted name as a prefix or suffix. - A positive result is a response that sends the browser to your host, or a page whose script navigates there, with your host as the actual destination after parsing.
Common false positives: a redirect that only fires after authentication, where the destination is validated server-side but your test skipped that step; a Location header that points to your host only because you supplied it as a path on the same origin; and reflected text that looks like a URL but is never navigated to. Confirm the final destination in a browser with a host you control before reporting.
How it is fixed
Use an allowlist of permitted redirect destinations, or accept only relative paths. Parse the supplied value with a well-tested URL parser and compare the resolved scheme and host against the expected values, rejecting anything else, including protocol-relative forms. Do not rely on prefix or substring checks. Where a destination must be carried across a flow, store it server-side and reference it by an opaque identifier rather than passing the URL through the client.
Hunting notes
Open redirects cluster around authentication boundaries, because those flows need to return the user somewhere afterwards, and around any feature that builds links for sharing or for switching locale or region. Recon signals include parameters with names suggesting a destination (next, return, redirect, url, continue, callback), endpoints that answer with a 3xx and a Location header, and client-side routers that read a path or hash and navigate. When you find one, show impact in the way the program will accept: demonstrate the redirect landing on a domain you control, explain the phishing scenario in the user's terms, and keep the payload minimal. If the redirect only works with a specific scheme or only for certain destination forms, say so, because that detail is what distinguishes a real finding from a validator that already blocks the obvious case.
What happened, in plain words
Uber's main website, www.uber.com, could be made to send a visitor from one address to another. The researcher found that this feature could be tricked into sending people to a website that has nothing to do with Uber. This kind of bug is called an open redirection, and the researcher was paid a bounty of 500.00 USD for reporting it. The report does not give a severity rating or describe how the problem was fixed.
A redirect is simply a website telling your browser "the page you want is over there, go to this other address instead". You have seen it many times: you type an old address, and a moment later you land on a new one. Normally the destination is a page on the same site. An open redirect is when the site will send you to any address someone puts in the link, including one an attacker controls.
Step 1: a normal name in the path does nothing
The researcher first tried putting a website name into the address after a double slash:
https://www.uber.com//google.com/cities
Here https:// is the scheme (the "language" the browser uses to talk to the site), www.uber.com is the host (the site you are visiting), and everything after the first / is the path (the specific page). The path here starts with //google.com/cities. The result was a Page Not Found page on Uber itself. This step matters because it shows the obvious version of the trick does not work, which is why the researcher kept experimenting.
Step 2: an IP address behaves differently
Next, the researcher replaced the name with an IP address, which is the numeric address of a computer on the internet (like a phone number for a server):
https://www.uber.com//[redacted]/[param]
[param] is a placeholder for whatever comes after the address, such as a page name. This time the result was either a 404 (a "page not found" error from the destination server) or an SSL error. SSL is the encryption that makes https:// work; an SSL error means the browser could not establish a secure connection. The report does not explain why the name and the IP address behave differently, only that they do.
Step 3: removing https:// makes it work
The decisive step was to drop the scheme from the front of the link:
uber.com//[redacted]/calendar
With no https:// in front, the same IP-based path reached the destination without the SSL error or the 404. According to the report, this redirects to Google's Calendar.
Step 4: making the link clickable
Finally, the researcher noted that an attacker can make the link clickable by switching the scheme to plain HTTP:
http://uber.com//[redacted]/calendar
The researcher noted that an attacker can make the link clickable by switching the scheme to plain HTTP.
Why this matters
The proof of concept is about trust, not about breaking into a server. A victim receives a link that visibly carries the name of Uber, so it looks legitimate. Clicking it takes them to malicious content.
In general, how this kind of bug works
An open redirect exists when a website takes a destination from the link it was given and sends the browser there without checking that the destination belongs to the site. The destination often arrives in a query parameter (the part of a URL after a ?), in a path segment, or in a form field used after login or logout. The browser then follows a Location header (the instruction a server sends to say "go here instead") or a script that navigates, and the address bar ends up on a domain the site does not control.
The // form is a common way around naive checks. In URL syntax, a reference starting with two slashes is protocol-relative: the browser keeps the current scheme and takes what follows as the host. So //example.org/path means "same scheme, host example.org". A check that only looks for http:// or https://, or that only asks whether the value starts with a slash, can be fooled by this form. Backslashes, encoded characters, a user@host prefix, and stray whitespace are other classic tricks that change how a parser splits the URL compared with how the check read it.
The defences are an allowlist of permitted destinations, or accepting only relative paths that are parsed and rebuilt by a trusted URL library before use, plus rejecting any value whose resolved host differs from the site's own.
How to test for it
- Find every place the site sends the browser somewhere else: login and logout flows, link shorteners, share buttons, language and region switchers, login callbacks, "return to" parameters, and error pages that offer a way back.
- For each, identify the parameter or path segment that carries the destination.
- Send a value pointing at a host you control and watch the response. Check the
Locationheader on the raw response, not just what the browser shows, and follow the redirect with redirects disabled so you see each hop. - Try the bypass forms in turn: a full URL with scheme, protocol-relative
//host, a single leading slash followed by a host, backslash variants, encoded slashes and dots, auser@hostprefix, and a host that merely contains the trusted name as a prefix or suffix. - A positive result is a response that sends the browser to your host, or a page whose script navigates there, with your host as the actual destination after parsing.
Common false positives: a redirect that only fires after login, where the destination is checked on the server but your test skipped that step; a Location header that points to your host only because you supplied it as a path on the same site; and text that looks like a URL but is never navigated to. Confirm the final destination in a browser with a host you control before reporting.
How it is fixed
Use an allowlist of permitted destinations, or accept only relative paths. Parse the supplied value with a well-tested URL parser and compare the resolved scheme and host against the expected values, rejecting anything else, including protocol-relative forms. Do not rely on prefix or substring checks. Where a destination must be carried across a flow, store it on the server and reference it by an opaque identifier rather than passing the URL through the client.
Where to look
Open redirects cluster around login and logout boundaries, because those flows need to return the user somewhere afterwards, and around any feature that builds links for sharing or for switching language or region. Useful signals include parameters whose names suggest a destination (next, return, redirect, url, continue, callback), endpoints that answer with a 3xx status and a Location header, and client-side routers that read a path or hash and navigate. When you find one, show the impact in the way the program will accept: demonstrate the redirect landing on a domain you control, explain the phishing scenario in the user's terms, and keep the payload minimal. If the redirect only works with a specific scheme or only for certain destination forms, say so, because that detail is what separates a real finding from a check that already blocks the obvious case.
Glossary
- Open redirect: a bug where a site will send a visitor to any address supplied in the link, including one the site does not control.
- Redirect: a website telling the browser to go to a different address instead.
- Scheme: the first part of a URL, such as
httporhttps, that says how to talk to the site. - Host: the part of a URL that names the site or server, such as
www.uber.comor an IP address. - Path: the part of a URL after the host that points to a specific page.
- IP address: the numeric address of a computer on the internet, like a phone number for a server.
- 404: the error a server returns when the requested page does not exist.
- SSL: the encryption that makes
https://connections secure; an SSL error means the secure connection could not be set up. - Protocol-relative reference: a URL starting with
//, which means "keep the current scheme, use the following part as the host". - Query parameter: the part of a URL after a
?, used to pass values to the site. - Location header: the instruction a server sends to tell the browser where to go next.
- Allowlist: a list of values that are explicitly permitted, with everything else rejected.
- URL parser: software that breaks a URL into its parts (scheme, host, path) according to the rules.
- False positive: a test result that looks like a bug but is not one.
- Phishing: tricking someone into trusting a link or page so they hand over information or visit malicious content.
- Bounty: a reward paid by a company for a valid security report.