Open Redirect Scanner with Uber.com
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Uber's web estate spans many subdomains, and some of them accept a URL or path fragment from the request and use it to build a redirect. When that input is not validated, the application can be made to send the browser to an arbitrary external site. The author frames this as the classic unvalidated redirect and forward problem: a web application accepts untrusted input that can cause it to redirect the request to a URL contained in that input. Because the server name in the modified link is identical to the original site, a phishing attempt built on such a link looks more trustworthy, and the same trick can be used to craft a URL that passes an access control check and then forwards the attacker to privileged functions they would not normally reach. The author cites the OWASP page on open redirect as the reference for the concept.
The target of the research was Uber. The vulnerable host shown in the write-up is trip.uber.com.

Setup
The researcher needed a way to follow the chain of requests a redirect produces, observe the jumps, and see the final destination, then decide whether a given Uber domain can be forced to redirect to an external site. The tool of choice was Python, described as a few lines of code, because it made it easy to load a list of subdomains, append a payload to each URL, and watch where the request ends up.
No accounts, roles, versions or other preconditions are described in the write-up. The only inputs are the list of Uber subdomains and the payload the scanner appends.
Finding it
The researcher was looking for a way to scan the trace of requests, view the jumps to the final URL destination, and check whether a list of Uber domains could be forced to redirect to another external site. The scanner reports a 303 status code, among others, when a domain is vulnerable. In the demonstration the scanner finds an open redirect on an Uber subdomain and shows the request being forced to load www.yahoo.com.
Exploitation
Step 1: identify a vulnerable host
The write-up names one domain as vulnerable to open redirect:
https://trip.uber.com/
Step 2: build the malicious URL
A payload is appended to the host so that the resulting link looks like a trip.uber.com URL but resolves elsewhere:
https://trip.uber.com//yahoo.com/%2F..
The path starts with a double slash, then the attacker-chosen host yahoo.com, then an encoded slash (%2F) followed by ... When a user opens this link they are redirected to the yahoo.com site. The author notes that the URL can be obfuscated with any available encoding to deceive the user about where the link really goes.
Step 3: deliver the link
The link is sent to a user. Because the visible server name is the original Uber site, the phishing attempt has a more trustworthy appearance, which is the core of the attack described in the introduction.
Step 4: automate the search
The scanner loads a list of subdomains, adds the payload to the final URL, and follows the requests to the final destination to see whether the open redirect works. A 303 response code, among others, indicates that the domain is vulnerable.
Root cause
The application accepts untrusted input that influences the redirect target and does not validate it before issuing the redirect. The write-up does not explain why the construction works; what is shown is the behaviour: a crafted path on trip.uber.com results in a redirect to yahoo.com. The write-up does not describe the server-side code or the specific validation that was missing, so the exact mechanism inside the application is not stated; what is shown is the behaviour: a crafted path on trip.uber.com results in a redirect to yahoo.com.
Impact
An attacker can send a URL that forces the user to a malicious site, execute evil scripts, or phish sensitive data. The redirect can also be used to craft a URL that passes the application's access control check and then forwards the attacker to privileged functions they would normally not be able to access. The trustworthiness of the original domain in the link makes the phishing attempt more convincing.
The issue was reported, but Uber decided not to fix it because it was not considered a risk for its users.
Fix
No fix was applied: the write-up states that Uber decided not to fix the issue because it did not consider it a risk to its users.
Variants to test
- Try other Uber subdomains from the same list with the same payload shape, for example a double slash followed by an external host and an encoded slash with
... A positive result is a 303, or another redirect status, that sends the browser to the external host. - Vary the encoding of the URL (
%2F,%2f, and other available encodings) to see whether the redirect still works with a differently encoded URL. A positive result is the same external redirect with a differently encoded URL. - A positive result is any request whose response redirects to a host outside the target's domains.
- Run the scanner against a broader list of subdomains and see which ones redirect to an external destination, which is the workflow the tool was written for.
What happened, in plain words
A security researcher found that a link on an Uber website could be made to send visitors to a completely different website, in this case Yahoo. This kind of flaw is called an open redirect. The researcher wrote a small Python program to look for such flaws across many Uber subdomains, found one on trip.uber.com, and reported it. Uber decided not to fix it because they did not think it was a risk to their users. The write-up explains what an open redirect is, shows the scanner, gives the malicious link, and includes the Python code.

What is an open redirect?
When you click a link, your browser asks a web server for a page. Sometimes the server does not send the page directly; instead it replies with a redirect, which is a message saying "go to this other address instead". Your browser then automatically requests that other address. This is normal and useful: for example, after you log in, a site might redirect you to your dashboard.
An open redirect happens when a website takes part of the address you requested and uses it to decide where to redirect you, without checking that the destination is safe. An attacker can craft a link that points to the trusted site but includes a hidden instruction to redirect to a malicious site. Because the link starts with the trusted domain, it looks legitimate, which makes it easier to trick people into visiting phishing sites or downloading malware.
The researcher quotes the classic definition: unvalidated redirects and forwards are possible when a web application accepts untrusted input that could cause it to redirect the request to a URL contained within that untrusted input. By modifying the input to a malicious site, an attacker may launch a phishing scam and steal credentials. The server name in the modified link is identical to the original site, so the phishing attempt looks more trustworthy. Such links can also be used to craft a URL that passes access control checks and then forwards the attacker to privileged functions they normally could not access.
For a beginner, think of it like a receptionist at a trusted office who will forward your call to any number you give them, without checking. A scammer can give the receptionist the number of a fake office and the caller will think they are still talking to the trusted company.
The scanner
During his research on Uber, the researcher needed a tool to scan the trace of requests, view the jumps to the final URL destination, and see if a list of Uber domains could be forced to redirect to an external site. He chose Python because it was the best solution with just a few lines of code. An open redirect is dangerous because an attacker can send a URL and force the user to a malicious site, execute evil scripts, or phish sensitive data.
He included an example with the scanner. The scanner finds an open redirect on an Uber subdomain and shows how the request is forced to load www.yahoo.com.
The issue was reported, but Uber decided not to fix it because it was not considered a risk for its users.
How does the scanner work?
The scanner shows a 303 status code (among others) when a domain is vulnerable. A status code is a number a web server sends back to tell the browser what happened. 303 means "see other": the server is telling the browser to go to a different address.
The attack
For example, this domain on Uber is vulnerable to open redirect:
https://trip.uber.com/
We can send a user this evil URL with a payload:
https://trip.uber.com//yahoo.com/%2F..
and the user is redirected to the yahoo.com site. We can obfuscate the URL to cheat the user with any encoding available.
Let's break down the malicious URL:
https://trip.uber.com/is the trusted part. It is the real Uber domain, so the link looks safe.yahoo.comis the attacker-chosen external site.%2Fis the URL-encoded form of a forward slash/. Encoding is a way to represent special characters so they can be transmitted safely. Here it is used to hide the slash from simple filters.
When a user clicks this link, they are redirected to the yahoo.com site. The user's browser then loads Yahoo, but the link they clicked showed trip.uber.com.
The researcher notes that the URL can be obfuscated with any available encoding to deceive the user about where the link really goes. For example, using %2f (lowercase) or other encodings might still work to obfuscate the URL.
The code
The researcher wrote Python code to follow the requests to a final destination and see if the open redirect works, but the write-up does not show it. Basically, the scanner loads a list of subdomains, adds a payload to the final URL, and sees where it goes.
(Note: the original write-up mentions the code but does not show it. The description says it loads a list of subdomains, appends a payload, and follows redirects.)
Why Uber did not fix it
Uber decided not to fix the issue because they did not consider it a risk for their users. The write-up does not describe any remediation that was proposed or implemented.
Variants to test
If you want to look for similar issues, here are some approaches:
- Try other Uber subdomains from the same list with the same payload shape: a double slash followed by an external host and an encoded slash with
... A positive result is a 303, or another redirect status, that sends the browser to the external host. TheLocationheader is part of the server's response that tells the browser where to go. - Vary the encoding of the URL (
%2F,%2f, and other available encodings) to see whether the redirect still works with a differently encoded URL. A positive result is the same external redirect with a differently encoded URL. - A positive result is any request whose response redirects to a host outside the target's domains.
- Run the scanner against a broader list of subdomains and see which ones redirect to an external destination, which is the workflow the tool was written for.
Glossary
- Open redirect: A vulnerability where a website can be tricked into redirecting users to an arbitrary external site, often used for phishing.
- Redirect: A server response that tells the browser to go to a different URL.
- Status code: A three-digit number in an HTTP response indicating the outcome (e.g. 200 OK, 303 See Other, 404 Not Found).
- 303 See Other: An HTTP status code meaning the requested resource can be found at another URL, and the browser should fetch it with a GET request.
- Payload: The part of an attack that carries the malicious input, here the crafted URL path.
- URL encoding: A way to represent special characters in a URL using percent-encoding (e.g.
%2Ffor/). - Path traversal: Using
..to navigate up directory levels, sometimes used to bypass restrictions. - Subdomain: A domain that is part of a larger domain (e.g.
trip.uber.comis a subdomain ofuber.com). - Phishing: A scam where attackers trick users into revealing sensitive information by impersonating a trusted entity.
- OWASP: Open Web Application Security Project, a nonprofit that publishes web security resources.
- Python: A programming language often used for scripting and automation.
- HTTP request: A message sent by a browser to a server asking for a resource.
- HTTP response: A message sent by a server back to the browser, containing status code, headers, and body.
- Location header: An HTTP response header used in redirects to specify the URL to redirect to.
- Access control check: A security mechanism that determines whether a user is allowed to access a resource.
- Normalisation: The process of simplifying a URL or path to a standard form, which can sometimes be bypassed with encoding tricks.