Window.opener bug at www.coinbase.com
A link on the Coinbase site opened in a new tab without isolating the opener, so the opened page could change the original tab's address. An attacker who controlled the linked page could redirect the Coinbase tab to a lookalike site.
- Fixed in 8 days
- Paid in 8 days
- Disclosed after 19 days
Window.Opener Bug
Description:
When you open a link in a new tab ( target="_blank" ), the page that opens in a new tab can access the initial tab and change it's location using the window.opener property.
Browsers Verified In:
- Mozilla Firefox
Steps To Reproduce:
-
In Image F133659, If you notice the links go through
https://www.coinbase.com/external_redirectexcept "Bloomberg" -
Since Bloomberg works on
http, If you're in the same network you can manipulate the bloomberg page and inject a script which manipulateswindow.opener
window.opener.location.replace("https://www.notcoinbase.com");
I understand this is very trivial to exploit and does not have very big impact
Attachments

What the report shows
The target is the Coinbase website at https://www.coinbase.com/. The researcher reported a window.opener issue, filed through HackerOne, and the report was disclosed on 28 November 2016 with a bounty of 100.00 USD. No severity rating or weakness classification is given in the text.
The researcher's description is short: when a link opens in a new tab with target="_blank", the page that opens can reach back to the original tab through the window.opener property and change its location. The only browser listed under verification is Mozilla Firefox.
The reproduction steps are:
- Visit
https://www.coinbase.com/. - Look at the outbound links on the page. According to the report, those links pass through
https://www.coinbase.com/external_redirect, with one exception: the link to Bloomberg. - Because the Bloomberg link works over
http, an attacker positioned on the same network could manipulate the Bloomberg page and inject a script that useswindow.opener.
The payload given in the report is:
window.opener.location.replace("https://www.notcoinbase.com");

The screenshot is the only attachment and is referenced in step 2 as the place where the outbound links, and the Bloomberg exception, can be seen.
The researcher closes by saying the issue is very trivial to exploit and does not have a very big impact. The report does not describe a fix, and it does not record a severity score.
Root cause
The report does not identify the missing attribute; it only shows that the opened Bloomberg page can reach the opener through window.opener. The other outbound links are routed through https://www.coinbase.com/external_redirect, which the report presents as the normal handling; the Bloomberg link is the one that bypasses it. On top of that, the destination is served over plain http, so anyone who can sit on the network path can alter the page that ends up holding the opener reference.
Impact
The report's own framing is modest. An attacker who can modify the Bloomberg page in transit can run script in that page's context and navigate the Coinbase tab that opened it to https://www.notcoinbase.com. The script navigates the Coinbase tab to https://www.notcoinbase.com, which the researcher characterises as not having a very big impact. The report does not demonstrate theft of credentials, session data or any other concrete outcome, and it explicitly states the impact is not very big.
How this kind of bug works
When a page opens another document with target="_blank", the new document gets a window.opener reference to the window that opened it unless the link is marked noopener. Through that reference the child can read and write properties of the parent, including location. Navigating the parent is the classic abuse: the user trusts the tab they started in, and the attacker swaps its contents for a lookalike page.
The child page does not have to be malicious by design. If it is served over http, or is otherwise compromiseable, a network attacker or a cross-site scripting flaw in the child turns an ordinary outbound link into a vector against the linking site. Reverse tabnabbing is this mechanism: the opened page navigates the opener to a phishing page.
Defences are well established. Add rel="noopener" to links that open a new browsing context; modern browsers also treat target="_blank" as implicitly noopener, but older ones do not, and the attribute costs nothing. Serve everything over HTTPS so the child cannot be modified in transit. Where a site routes outbound links through a redirector, keep that behaviour consistent so no link escapes the pattern.
How to test for it
- Enumerate outbound links on the target: marketing pages, footers, help articles, social links, partner and press links. Note which ones use
target="_blank"and which carryrel="noopener"orrel="noreferrer". - For each candidate, open it and check in the developer console whether the child window has a non-null
window.openerthat points at the target's origin. A positive result is a live reference you can use to read or set properties on the opener. - Confirm the navigation primitive by setting the opener's location from the child and observing the original tab move. Do this only on pages you control or are authorised to modify.
- Check the transport of the child page. A plain
httpdestination, or one with reflected input, raises the practical impact considerably. - Test in more than one browser. Behaviour around implicit noopener differs between engines and versions, and a finding in one browser may not reproduce in another.
Common false positives: a link that already carries noopener but where the tester checked only the rendered DOM and missed the attribute; a child on a different origin where the opener reference exists but cross-origin policy blocks the property access you actually need; and a navigation that only works because the tester's own browser extension or devtools altered the page. Also beware of reporting the mere presence of window.opener without showing a realistic path for an attacker to control the child page.
How it is fixed
Add rel="noopener" to every link that opens a new tab, or set Cross-Origin-Opener-Policy where the architecture allows it. Serve all destinations over HTTPS. Keep outbound links on a consistent redirector so exceptions do not slip through review. If the site opens windows from script, use window.open with noopener in the features string, or null out opener on the new window.
Hunting notes
This bug class hides in content that is edited by non-engineers: press mentions, partner logos, blog sidebars, event pages and footers. Those links are often added by hand and miss the rel attribute that templates apply elsewhere. Recon signals worth watching are outbound links that bypass a redirector the rest of the site uses, and any outbound destination still served over http. To make a report land, show the full chain: the link, the missing attribute, the live opener reference, and a plausible way for an attacker to control the child page. Without that last part, many programs will treat it as informational.
What happened, in plain words
It has links that point to other sites.
A researcher looked at those outbound links on https://www.coinbase.com/ and found that almost all of them were sent through a Coinbase address first, https://www.coinbase.com/external_redirect. One link did not follow that pattern: the link to Bloomberg. That link also worked over plain http, the unencrypted version of the web.
That combination matters because of a browser feature called window.opener. When a page opens another page in a new tab, the new page normally gets a handle back to the tab that opened it. Through that handle it can read and change things in the original tab, including where that tab is pointing. The researcher showed that a script running in the opened page could send the Coinbase tab somewhere else entirely.
The report was filed through HackerOne and disclosed on 28 November 2016, with a bounty of 100.00 USD. The researcher tested in Mozilla Firefox and described the issue as very trivial to exploit with no very big impact. No severity rating or weakness classification appears in the text.
The technical write-up
What the report shows
The description is short. When a link opens in a new tab with target="_blank", the page that opens can reach back to the original tab through the window.opener property and change its location. The only browser listed under verification is Mozilla Firefox.
The reproduction steps are:
- Visit
https://www.coinbase.com/. - Look at the outbound links on the page. According to the report, those links pass through
https://www.coinbase.com/external_redirect, with one exception: the link to Bloomberg. - Because the Bloomberg link works over
http, an attacker positioned on the same network could manipulate the Bloomberg page and inject a script that useswindow.opener.
The payload given in the report is:
window.opener.location.replace("https://www.notcoinbase.com");

The screenshot is the only attachment and is referenced in step 2 as the place where the outbound links, and the Bloomberg exception, can be seen.
The researcher closes by saying the issue is very trivial to exploit and does not have a very big impact. The report does not describe a fix, and it does not record a severity score.
Root cause
The report does not identify the missing attribute; it only shows that the opened Bloomberg page can reach the opener through window.opener. The other outbound links are routed through https://www.coinbase.com/external_redirect, which the report presents as the normal handling; the Bloomberg link is the one that bypasses it. On top of that, the destination is served over plain http, so anyone who can sit on the network path can alter the page that ends up holding the opener reference.
Impact
The report's own framing is modest. An attacker who can modify the Bloomberg page in transit can run script in that page's context and navigate the Coinbase tab that opened it to https://www.notcoinbase.com. The script navigates the Coinbase tab to https://www.notcoinbase.com, which the researcher characterises as not having a very big impact. The report does not demonstrate theft of credentials, session data or any other concrete outcome, and it explicitly states the impact is not very big.
How this kind of bug works
When a page opens another document with target="_blank", the new document gets a window.opener reference to the window that opened it unless the link is marked noopener. Through that reference the child can read and write properties of the parent, including location. Navigating the parent is the classic abuse: the user trusts the tab they started in, and the attacker swaps its contents for a lookalike page.
The child page does not have to be malicious by design. If it is served over http, or is otherwise compromiseable, a network attacker or a cross-site scripting flaw in the child turns an ordinary outbound link into a vector against the linking site. Reverse tabnabbing is this mechanism: the opened page navigates the opener to a phishing page.
Defences are well established. Add rel="noopener" to links that open a new browsing context; modern browsers also treat target="_blank" as implicitly noopener, but older ones do not, and the attribute costs nothing. Serve everything over HTTPS so the child cannot be modified in transit. Where a site routes outbound links through a redirector, keep that behaviour consistent so no link escapes the pattern.
How to test for it
- Enumerate outbound links on the target: marketing pages, footers, help articles, social links, partner and press links. Note which ones use
target="_blank"and which carryrel="noopener"orrel="noreferrer". - For each candidate, open it and check in the developer console whether the child window has a non-null
window.openerthat points at the target's origin. A positive result is a live reference you can use to read or set properties on the opener. - Confirm the navigation primitive by setting the opener's location from the child and observing the original tab move. Do this only on pages you control or are authorised to modify.
- Check the transport of the child page. A plain
httpdestination, or one with reflected input, raises the practical impact considerably. - Test in more than one browser. Behaviour around implicit noopener differs between engines and versions, and a finding in one browser may not reproduce in another.
Common false positives: a link that already carries noopener but where the tester checked only the rendered DOM and missed the attribute; a child on a different origin where the opener reference exists but cross-origin policy blocks the property access you actually need; and a navigation that only works because the tester's own browser extension or devtools altered the page. Also beware of reporting the mere presence of window.opener without showing a realistic path for an attacker to control the child page.
How it is fixed
Add rel="noopener" to every link that opens a new tab, or set Cross-Origin-Opener-Policy where the architecture allows it. Serve all destinations over HTTPS. Keep outbound links on a consistent redirector so exceptions do not slip through review. If the site opens windows from script, use window.open with noopener in the features string, or null out opener on the new window.
Hunting notes
This bug class hides in content that is edited by non-engineers: press mentions, partner logos, blog sidebars, event pages and footers. Those links are often added by hand and miss the rel attribute that templates apply elsewhere. Recon signals worth watching are outbound links that bypass a redirector the rest of the site uses, and any outbound destination still served over http. To make a report land, show the full chain: the link, the missing attribute, the live opener reference, and a plausible way for an attacker to control the child page. Without that last part, many programs will treat it as informational.
Glossary
- Bounty: a payment a company makes to a researcher who reports a valid security problem.
- Browser tab: one page view inside a browser window; several can be open at once.
- Child page: the page opened in a new tab by a link on another page.
- Cross-origin policy: the browser rule that stops a page from one site freely reading data belonging to another site.
- Cross-site scripting (XSS): a flaw that lets an attacker get their own script to run inside someone else's page.
- Developer console: the built-in browser panel where you can inspect a page and run small snippets of code.
- DOM: the browser's in-memory model of a page, which scripts read and change.
- HackerOne: a platform where researchers report bugs to companies and companies manage those reports.
- HTTP: the unencrypted way browsers and servers exchange pages; anyone on the network path can read or alter it.
- HTTPS: HTTP wrapped in encryption, so the page cannot be read or changed in transit.
- Opener: the tab that opened another tab.
- Phishing: tricking someone into trusting a fake page, usually to steal a login or payment.
- Redirector: a page on a site that forwards visitors to an external destination, so the site controls the hop.
rel="noopener": an attribute on a link that tells the browser not to give the new tab a handle back to the opener.rel="noreferrer": an older attribute that also cuts the opener link and additionally hides where the visitor came from.- Reverse tabnabbing: an attack where the opened page later redirects the tab that opened it to a fake page.
- Root cause: the underlying reason a bug exists, as opposed to its visible symptom.
- Script: a small program that runs inside a web page.
target="_blank": a link attribute that makes the destination open in a new tab.window.opener: the browser property through which an opened page can reach the tab that opened it.window.opener.location.replace(...): the call that sends the opener tab to a different address.