Skip to content
Open redirect Disclosed report Beginner

[idp.fr.cloud.gov] Open Redirect

The identity provider at idp.fr.cloud.gov accepted a crafted URL path and responded with a redirect to an external domain. An attacker could use this to send victims to a phishing site that appears to originate from the trusted domain.

bobrov Follow

Originally disclosed on HackerOne

Bounty$150 Low 3.8 View original
  • Triaged in 6 days
  • Fixed in 3 months
  • Paid in 26 days
  • Disclosed after 3 months

Description: Open Redirect

Domain: idp.fr.cloud.gov

Steps To Reproduce: Open URL:

https://idp.fr.cloud.gov//blackfan.ru/..;/css

HTTP Response

HTTP/1.1 302 Found
...
Location: //blackfan.ru/..;/css/
...

Impact

A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks.

The original report as published on HackerOne, by bobrov. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is idp.fr.cloud.gov, an identity provider host in the GSA Bounty program on HackerOne. The researcher, bobrov, reported an open redirect and rated it low severity (CVSS 3.8). The report was disclosed on 1 November 2018 with a bounty of 150.00 USD.

The reproduction is a single step. The researcher opened this URL:

Text
https://idp.fr.cloud.gov//blackfan.ru/..;/css

The server answered with a redirect whose Location header pointed at an external host:

HTTP
HTTP/1.1 302 Found
...
Location: //blackfan.ru/..;/css/
...

The path contains a double slash and a ..; segment. The leading double slash makes the value look like a protocol-relative URL, so a browser reading //blackfan.ru/... treats blackfan.ru as the host. The report does not describe those checks or name the parameter or endpoint that produced the redirect; it only shows the request URL and the response.

The report gives no fix details and no timeline beyond the disclosure date.

Root cause

The report does not state the cause. A check that only looks for http:// or https:// at the start of the value, or that only inspects the raw input before path normalisation, will miss a protocol-relative value such as //blackfan.ru/....

Impact

The report's own impact statement is that a web application accepts user-controlled input specifying a link to an external site and uses it in a redirect, which simplifies phishing attacks. The report says the redirect simplifies phishing attacks. The report does not demonstrate credential theft or any other follow-on attack, and the low severity reflects that the redirect alone requires user interaction.

How this kind of bug works

An open redirect exists when an application uses user-supplied data to choose where to send the browser next, and does not constrain the result to its own origin. The usual carriers are a next, return, redirect_uri, continue or url parameter, or a path segment that the server copies into a Location header.

The bypasses come from the gap between how the validator parses a URL and how the browser does. A browser resolves //host/path as protocol-relative, so it goes to host on the current scheme. It also treats backslashes in some positions like slashes, strips tabs and newlines in places, and resolves .. segments before navigation. Validators that compare strings, or that parse with a different library than the one that builds the redirect, can therefore be fooled by values that look internal to the check but external to the browser.

Defences are allowlists and indirection. Accept only relative paths that begin with a single / and contain no scheme, no leading // or /\, and no control characters; or map an opaque key to a server-side table of permitted destinations. Where a full URL must be accepted, parse it, compare the host against an allowlist, and rebuild the redirect from the parsed components rather than echoing the input.

How to test for it

  1. Find every place the application sends a redirect: login and logout flows, SSO callbacks, language and locale switchers, short links, download endpoints, and any Location header you see in proxy history.
  2. Identify the input that controls the destination. It may be a query parameter, a form field, a path segment, or a header such as Referer used as a fallback.
  3. Send a value pointing at a host you control and observe the response. A positive result is a 3xx whose Location resolves to your host, or a page that loads your host in a frame or via a meta refresh.
  4. If the plain value is rejected, try the encodings that separate validators from browsers: a leading //, a leading /\, mixed case schemes, a scheme with a userinfo section, .. and ; path segments, percent-encoded slashes and dots, and whitespace or control characters inside the value.
  5. Confirm in a browser, not just in the raw response, because the browser's resolution is what determines the real destination.

Common false positives: a redirect to a host that is genuinely part of the same organisation and allowlisted; a Location that only looks external because of how a tool displays it; a redirect that requires an authenticated session the attacker cannot obtain; and reflected content in the body that never reaches a Location header or a navigation sink.

How it is fixed

Reject anything that is not a relative path starting with a single slash, and normalise the path before the check. If external destinations are a requirement, keep an allowlist of hosts, parse the supplied URL, compare the parsed host, and construct the redirect from the parsed parts. Apply the same rule to every redirect sink, including error handlers and framework helpers that take a returnUrl. Add tests for protocol-relative values, backslash variants and encoded separators.

Hunting notes

Open redirects cluster around authentication: post-login return URLs, OAuth and SAML callback parameters, password reset flows, and logout endpoints. They also appear in locale and theme switchers, mobile deep-link bridges, and any endpoint that echoes a path into a Location header. Recon signals worth watching are parameters named after navigation (next, return, redirect, continue, dest, callback), hosts that issue many 302 responses, and frameworks known for path-based redirects.

To get a report accepted, show the full request and the raw response with the Location header, then show the browser following it to a host you control. Explain the user-facing scenario, such as a phishing link that begins on the trusted domain, and keep the claim to what you demonstrated. A redirect that only fires after authentication, or that lands on an allowlisted partner, is usually closed as informational.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

This report is about a website that can be tricked into sending visitors to a different website, one the visitor did not ask for. The site in question is idp.fr.cloud.gov, a login server (an "identity provider"). The researcher, bobrov, found the problem, reported it through the GSA Bounty program on HackerOne, and it was rated low severity with a CVSS score of 3.8. It was disclosed on 1 November 2018 and paid a bounty of 150.00 USD.

To understand the bug, picture a receptionist at a building who is told "please send the next visitor to room 12". If the receptionist blindly follows whatever address is written on a note, anyone can write "send them to my own office across the street" and the visitor will go there, trusting the building they started in. A web server does the same thing when it answers a request with a redirect: it tells the browser "go to this address instead". If the address comes from the visitor's request and is not checked, the server can be made to send people anywhere.

That is what happened here. The researcher opened a single URL:

Text
https://idp.fr.cloud.gov//blackfan.ru/..;/css

Let us take it apart piece by piece.

  1. https://idp.fr.cloud.gov is the trusted login server. This is the part a victim would recognise and trust.
  2. //blackfan.ru is the interesting bit. To a browser, a web address that starts with two slashes and no https: in front is "protocol-relative": it means "use the same protocol as the current page, but go to this host". So //blackfan.ru means "go to the site blackfan.ru".
  3. /..;/css is the rest of the path. The .. is the usual "go up one folder" marker, and the ; is a separator some web frameworks treat specially.

The server's answer was a redirect:

HTTP
HTTP/1.1 302 Found
...
Location: //blackfan.ru/..;/css/
...

Line by line:

  • HTTP/1.1 302 Found is the status line. A 302 is the standard "temporary redirect" code: the server is telling the browser "the thing you asked for is somewhere else, go there".
  • ... stands for response headers the report did not include.
  • Location: //blackfan.ru/..;/css/ is the header that carries the destination. The browser reads it and navigates to blackfan.ru, a host outside the trusted login server.

Why does this matter? Because the link a victim clicks begins with the real, trusted login domain. A phishing message can say "log in here" and show a URL that genuinely starts with idp.fr.cloud.gov. Only after the click does the browser jump to the attacker's page, which can be made to look like a login form. The report's own impact statement says exactly this: the application accepts user-controlled input that specifies a link to an external site and uses it in a redirect, which simplifies phishing attacks. The report does not show anyone's credentials being stolen; the redirect alone still needs a person to click and then enter something on the next page, which is why the severity is low.

The report does not name the parameter or endpoint that produced the redirect and gives no fix details or timeline beyond the disclosure date.

In general, how this kind of bug works

An open redirect exists when a website lets the person making the request decide where the browser goes next, without limiting the answer to the site's own address. The destination is often carried in a query parameter with a name like next, return, redirect_uri, continue or url, or in part of the path.

The trick usually relies on a gap between how the server checks the value and how the browser interprets it. A browser reading //example.com/path treats example.com as the host, because two leading slashes mean "same protocol, different host". A check that only looks for http:// or https:// at the start of the value will not notice this. Browsers also tidy up addresses in ways a simple string comparison does not: they resolve .. segments, and they handle some separators and encoded characters in their own way. If the code that validates the input and the code that builds the redirect disagree about what the value means, a crafted value can pass the check and still send the browser elsewhere.

To test for this yourself, the general approach is:

  1. Find places where the site redirects you: after login or logout, in single sign-on callbacks, language switchers, short links, and any response with a Location header.
  2. Work out which part of your request controls the destination.
  3. Put in an address of a site you control and see whether the response sends you there.
  4. If the plain address is rejected, try variations: a leading //, a leading /\, different capitalisation of the scheme, .. and ; path segments, and percent-encoded slashes or dots.
  5. Confirm the result in a real browser, because the browser's interpretation is what decides where a victim actually lands.

Some results are not real bugs: a redirect to another host that genuinely belongs to the same organisation, a redirect that only works for a logged-in user the attacker cannot be, or text in the page body that never becomes a navigation.

The usual fix is to allow only relative paths that start with a single /, and to normalise the path before checking it. If external destinations are genuinely needed, keep a list of permitted hosts, parse the supplied address, compare the host against that list, and build the redirect from the parsed pieces rather than echoing the input. The same rule should apply to every place the site redirects, and tests should cover the tricky variants such as //, backslashes and encoded separators.

Glossary

  • Open redirect: a flaw where a website can be made to send a visitor to an address supplied by the visitor, rather than only to its own pages.
  • Redirect: a server response (status codes starting with 3) that tells the browser to load a different address instead.
  • Location header: the part of a redirect response that contains the address the browser should go to.
  • 302 Found: the HTTP status code for a temporary redirect.
  • HTTP: the language browsers and web servers use to exchange requests and responses.
  • Request: the message a browser sends to a server asking for a page or action.
  • Response: the message a server sends back, including a status code, headers and often a body.
  • Header: a labelled line of extra information in a request or response, such as Location.
  • Host: the domain name part of a web address, such as idp.fr.cloud.gov.
  • Protocol-relative URL: an address beginning with //, meaning "use the current page's protocol but go to this host".
  • Path: the part of a URL after the host, such as /css.
  • Normalisation: the process of tidying up an address into a standard form, for example resolving .. segments.
  • .. segment: a path element meaning "go up one level", which browsers resolve before navigating.
  • Identity provider: a service that handles logins on behalf of other applications, so users sign in once and are trusted elsewhere.
  • Phishing: tricking someone into visiting a fake page, often to steal their login details.
  • CVSS: a scoring system for rating the severity of a security flaw; 3.8 is in the low range.
  • Bounty: a payment made to a researcher who reports a valid security flaw.
  • HackerOne: a platform where organisations receive security reports from researchers.
  • GSA Bounty: the bug bounty program of the US General Services Administration, which ran this report.
  • Disclosure: the point at which a previously private report is made public.

More by bobrov

View all

39 more disclosed reports, best first.

More from GSA Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.