Tab nabbing in Hackerone inbox.
Low
Vulnerability Details
**Description:**
Tab nabbing vulnerability occurs When you open a link in a new tab ( target="_blank" ), the page that opens in a new tab can access the initial tab and change its location using the ``window.opener`` property and from this a lot of phishing attacks could happen. This scenario occurs on hackerone.com/bugs.
**Attack Scenario:**
The attacker will create any website with any content which include this script tag
````html
<script>
if (window.opener) window.opener.parent.location.replace('http://phishing.com');
if (window.parent != window) window.parent.location.replace('http://phishing.com');
</script>
````
**Steps To Reproduce:**
1. submit a report to any program and write in the description your phishing website.
2. Open your inbox and click on your phishing website will open in a new tab.
3. Open the console and write ``window.opener.location='http://google.com'``
4. Return to HackerOne inbox and you will find it redirected to Google.
## Impact
* Due to the redirection is done in the background and most people aren't aware of this type of attack unlike the open redirection, Most people will fall into it and will enter their credentials leading to account takeover.
Actions
View on HackerOneReport Stats
- Report ID: 1145563
- State: Closed
- Substate: resolved
- Upvotes: 19