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:
- First target "_blank"
- 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>
- Send to test account your link blog.
- On the test account open the link ; the initial page will be changed.
- Watch the POC video if you want more details.
Steps To Reproduce for the second target _blank:
- Second target "_blank"
- 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>
- Send to test account random message.
- On the test account click on the account name and the blog view page will be opened, next click on account blog link.
- Watch the POC video if you want more details.
Steps To Reproduce for the third target _blank:
- Third target "_blank"
- 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>
- Send to test account your link blog.
- On the test account navigate somewhere, click on the name account of sender ; the initial page will be changed.
- Watch the POC video if you want more details.
Supporting Material/References:
- don't forget to close all tabs
- POCs !
- relative report that can maybe help you : https://hackerone.com/reports/179568
Impact
It can allow an attacker to open a malicious site on the victim account. Perform phishing attacks.