Tabnabbing Vulnerability Test
How to Use
-
From the target website, create a link pointing to
https://tools.tigabelassec.my.id/tabnabbing/tabnabbing.html
withtarget="_blank"
attribute. - Click on the link. Observe whether the page that opened the link is replaced by this page.
- If it is replaced, the website is vulnerable to tabnabbing.
-
Ensure that all external links use
rel="noopener noreferrer"
to prevent this vulnerability.
Example Vulnerable Link
This example shows a vulnerable link without proper security attributes:
<a href="https://tools.tigabelassec.my.id/tabnabbing/tabnabbing.html" target="_blank">Test Tabnabbing</a>
Example Safe Link
This example shows a safe link using
rel="noopener noreferrer"
:
<a href="https://tools.tigabelassec.my.id/tabnabbing/tabnabbing.html" target="_blank" rel="noopener noreferrer">Test Tabnabbing</a>