Window Opener Property Bug
A user's profile website link could point to a page that manipulates the window.opener property, allowing the linked page to hijack the original HackerOne window when a visitor clicks the link. This is a bypass of a previous fix for a similar issue.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 45 days
The bug mentioned in #23386 is not yet correctly patched I believe.
See, if a user sets his/her profile's website link to a similar page as mentioned in #23386. I mean a page that can manipulate the window.opener property would be able to accomplish similar results as in #23386
Proof-of-Concept:
- Login to HackerOne
- Navigate to https://hackerone.com/settings/profile/edit
- Set Website to https://demo.prakharprasad.com/ga.html
- Once someone visits this link from a profile page (eg. https://hackerone.com/<username->), his opener HackerOne window will be hijacked.
Let me know if you have any questions.
Thanks, Prakhar Prasad
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 application did not prevent linked pages from accessing window.opener, so a page set as a profile website could manipulate the original window.
What the attacker needed
A HackerOne account; victim clicks a profile website link
How it was found
- Log in to HackerOne.
- Go to the profile edit settings page.
- Set the Website field to a page that manipulates window.opener.
- Have someone visit that link from a profile page.
- The original HackerOne window is hijacked.
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 a new tab, the new page can sometimes control the tab it came from using a browser feature called window.opener. Here, a profile link could open a malicious page that takes over the original HackerOne tab, potentially changing what the user sees or does.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.