window.opener is leaking to external domains upon redirect on Safari
External redirect links on Coinbase did not properly clear window.opener in Safari, so a malicious external page could read the opener's location. An attacker could use this to redirect the original Coinbase tab to a phishing page.
- Triaged in 4 days
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 4 days
Summary by the program
Although Coinbase cleared window.opener on external redirects, it was not effective on WebKit-based browsers (Safari) since Safari's cross-origin security prevents the modification of window.opener of a child window if it lies on a different origin, yet still allows the child window to access window.opener.location.
The solution, proposed by the reporter, was to add rel="noreferrer noopener" to these external links.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the external links lacked rel="noreferrer noopener", and Safari's cross-origin rules prevented the site's JavaScript from clearing window.opener while still allowing the child page to read window.opener.location.
Impact
A malicious external page could read the original Coinbase tab's location on Safari, which may aid phishing; the issue was specific to Safari.
What the attacker needed
Victim uses Safari; victim clicks an external link on Coinbase; attacker controls the external page
The fix
The external links should be changed to include rel="noreferrer noopener".
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A new tab can sometimes access the original tab's location through window.opener. Coinbase tried to block this, but Safari handled it differently, so a malicious page could still read the original Coinbase tab's location.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.