You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example doyensec.com is converted to doyensec.com. As no rel attribute is present, it is possible for the website opened in the new tab (i.e. doyensec.com) to redirect the opener tab (i.e. bevybevy.com) to an arbitrary location.
Reproduction Steps
Create an HTML file with the following content: <script>window.opener.location.href="https://doyensec.com";</script>
Links are converted to HTML anchor tags.
For example doyensec.com is converted to doyensec.com. As no rel attribute is present, it is possible for the website opened in the new tab (i.e. doyensec.com) to redirect the opener tab (i.e. bevybevy.com) to an arbitrary location.
Reproduction Steps
<script>window.opener.location.href="https://doyensec.com";</script>
Remediation
Add the rel="noopener" attribute to anchor tags. This attribute prevents "child" tabs to access the window.opener object.
Resources
• https://owasp.org/www-community/attacks/Reverse_Tabnabbing
• https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noopener
gz#6585
The text was updated successfully, but these errors were encountered: