Tabnabbing Attack

Anandhu Krishnan
Published on
14 May 2024


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.


  • 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 function, add the values noopener,noreferrer in the windowFeatures parameter of the function.”

Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.

Written by
Anandhu Krishnan
Anandhu Krishnan
Lead Engineer
Find website security issues in a flash
Improve your website's security posture with proactive vulnerability detection.
Free website security assessment