Websites opened from reports can change url of report page
A link opened from a report page could use the JavaScript opener reference to change the URL of the still-open report tab. An attacker could replace the report page with a lookalike login form to steal credentials.
- Triaged in 14 hours
- Fixed in 14 days
- Paid in 30 days
- Disclosed after 30 days
Summary by the program
This issue is similar to #23386, though only exploitable via Safari.
The report
Websites opened from the a hackerone report can change the url of the report page. For example, clicking on a link set to "http://d214mfsab.org/same.html" (including this one) will change the still-open report page to http://example.com. This works on current versions of Safari (including mobile) and possibly other browsers.
This vulnerability can lead to phishing attacks, where the user changes the url of the report page to a similar-looking page. Users would trust the tab with the report open to remain the same, and would be unsuspecting.
This is due to mishandling of the 'target="_blank"' option.
To reproduce:
- In any html page (does not need to be the same origin), add the javascript "opener.location = 'http://example.com'". For this, I created http://d214mfsab.org/same.html
- Add this url to a hackerone report.
- When a user clicks on this url, the original report page's url will be changed to a potentially malicious url.
A malicious user could modify the report page to an extremely similar page, which a user would be unlikely to notice. An attacker could duplicate the entire report page, and present a login form, which would steal the user's password.
Although the user is warned about following links, this is not sufficient protection, as hackerone should ensure that pages cannot modify the report url.
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 new tab was opened without isolating it from the original page, so the opened page kept a reference to its opener and could navigate it.
Impact
An attacker could replace the report tab with a convincing fake login page and steal the user's password; the text says this works on Safari and possibly other browsers, and that the existing link warning is not sufficient.
What the attacker needed
Victim clicks a crafted link in a report; Safari browser (possibly others)
The fix
HackerOne should ensure that opened pages cannot modify the report page's URL.
How it was found
- Create a page that sets the opener's location to another URL.
- Place that page's URL in a report.
- Click the link in the report.
- Observe the original report tab's URL change.
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.
When you click a link that opens in a new tab, the new page can sometimes control the tab it came from. Here, a malicious page used that power to change the address of the original report tab to a fake page. The fake page could look like the real site and trick someone into typing their password.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.