HexBrain

Automattic · Report #984947

Tab nabbing via window.opener.location (target "_blank")

Validstatus
12upvotes
26 Dec 2020disclosed

How it was found

Summary:

When you open a link using target="_blank", the page that opens in a new tab get access to the initial tab and change its location using the window.opener.location function.

Platform(s) Affected:

website

Steps To Reproduce for the first target _blank:

  1. First target "_blank"
  2. On https://www.tumblr.com/customize add the following script :
<script>
window.opener.location = 'https://davidebove.com/blog/2016/05/05/target_blank-vulnerability-test-page/';
</script>
  1. Send to test account your link blog.
  2. On the test account open the link ; the initial page will be changed.
  3. Watch the POC video if you want more details.

Steps To Reproduce for the second target _blank:

  1. Second target "_blank"
  2. On https://www.tumblr.com/customize add the following script :
<script>
window.opener.location = 'https://davidebove.com/blog/2016/05/05/target_blank-vulnerability-test-page/';
</script>
  1. Send to test account random message.
  2. On the test account click on the account name and the blog view page will be opened, next click on account blog link.
  3. Watch the POC video if you want more details.

Steps To Reproduce for the third target _blank:

  1. Third target "_blank"
  2. On https://www.tumblr.com/customize add the following script :
<script>
window.opener.location = 'https://davidebove.com/blog/2016/05/05/target_blank-vulnerability-test-page/';
</script>
  1. Send to test account your link blog.
  2. On the test account navigate somewhere, click on the name account of sender ; the initial page will be changed.
  3. Watch the POC video if you want more details.

Supporting Material/References:

Impact

It can allow an attacker to open a malicious site on the victim account. Perform phishing attacks.

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