HexBrain

Phabricator · Report #306414

Window.opener protection Bypass

Validstatus
$300bounty
19upvotes
17 Feb 2018disclosed

How it was found

SUMMURY

If you create a post/comment with a link like http://x.com in fabricator then server add rel="norefferrer" to anchor tag . So child window dont have access to parent window. But it can be bypassed with url like /\x.com/index.php and child window can change the location property of parent window.

STEP TO REPRODUCE

  1. goto http://domain/w/ and create new document.

  2. Now paste this code in content

[[ /\jackluru02.000webhostapp.com/tabnabbing.html | click_me ]]

code of this my url is

<script>
window.opener.location.replace('http://example.com');
</script>
  1. now save it and share this document to other user.

  2. When user click this click , malicious link opened in new window and parent window location will be changed.

{F255328}

Impact

attacker can perform malicious activity to other user using this attack.

mongoose

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original