Tabnabbing Attack

Published on 14 May 2024
Vulnerability

Description

A reverse tabnabbing attack involves rewriting an already existing page with phishing content using a page linked from the target page. Due to the fact that the user was originally on a legitimate site, it is less likely they will notice that it has been changed into a phishing site, especially if the site looks similar to the target. In this case, credentials (or other sensitive data) are sent to the phishing site instead of to the legitimate site if the user authenticates on the newly created page.

Recommendation

  • For HTML links, add the attribute rel=”“noopener”” on the tag used to create the link from the parent page to the child page. This attribute value cuts the link, but depending on the browser, lets referrer information be present in the request to the child page. Also remove the referrer information use this attribute value: rel=”“noopener noreferrer””.

  • For the JavaScript window.open function, add the values noopener,noreferrer in the windowFeatures parameter of the window.open function.”

Anandhu Krishnan
Written by
Lead Engineer

Anandhu is an accomplished Senior Lead Engineer with a strong focus on back-end development. His expertise lies in architecting and optimizing the core of software applications to ensure they run smoothly and efficiently. With a meticulous attention to detail and a deep understanding of data management and server-side operations, Anandhu has been a driving force behind the success of various back-end projects.

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo