What is Tabnapping? Protection & Prevention Techniques

June 23, 2017 | Views: 11991

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

The word ‘Tab Napping’ comes from the combination of ‘tab’ and ‘kidnapping’ used by clever phishers, scammers, and hackers. Tabnapping is an interesting, tricky, clever, and smart hacking technique for phishing and scamming.

Through this, attackers take advantage and control a victim’s unattended browser tabs by hijacking and redirecting him to malicious URLs where they can perform a phishing attack and execute scripts and data URIS.

For example:

You are already logged in to your Facebook account and suddenly you see an interesting post with a web link. After clicking on the link, a new tab opens. Now, you are visiting an interesting post link on the new tab and unknowingly your previous tab will change to a fake Facebook login page. When you go back to the previous tab to log in to Facebook, your login information will be sent to the attacker and your successful login to Facebook because you never logged out.

Protect Yourself From Tab Napping:

Always check the URL in the address bar and ensure that it is using secure protocol HTTPS

Most web developers use target=”_blank” only to open links in new tab. If you use target=”_blank” only to open links in a new tab, then it is vulnerable to an attacker. 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.
javascript code:
window.opener.location.replace(malicious URL)
rel=”nofollow noopener noreferrer”


Cyber world is hitting by Tabnapping. Many sites like Google and Facebook is affected by Tabnapping. Many of us is unaware about this hacking technique, so hackers are targeting us, using this attack.


Important Note:
It is just for educational purpose only.


Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
  1. nice job. can we have video tutorial, a step by step…… for training/demonstration purposes

    • For sure and he comes at your home and do it for you… Seriously Google what you dont understand and be a Real hacker and adult by being yourself…

  2. thanks .good job

  3. This piqued my interest, but that’s about it. I’m unsure how to use this information to protect myself. I’m with CyberW@rri0r on this one—please make a video talking w/a real voice vs typing it all out or using one of those annoying robot voices

  4. Gr8 1 bro…
    wondering if u can make a practical video.

Page 1 of 212»
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?