Skip to content
XSS Disclosed report Intermediate

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.

prakharprasad Follow

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:

  1. Login to HackerOne
  2. Navigate to https://hackerone.com/settings/profile/edit
  3. Set Website to https://demo.prakharprasad.com/ga.html
  4. 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

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

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

  1. Log in to HackerOne.
  2. Go to the profile edit settings page.
  3. Set the Website field to a page that manipulates window.opener.
  4. Have someone visit that link from a profile page.
  5. 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.

More by prakharprasad

View all

17 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.