Information security is a topic of growing importance in recent times and today is a necessary and essential aspect of our daily lives.
Reverse Tabnabbing: Definition
We are going to answer the question in the title of this article: What is reverse tabnabbing and why is it important to be aware of?

The malicious site can only access the following properties from the opener Javascript object reference (that is in fact a reference to a window javascript class instance) in cases of cross origin (cross domain) access:
- Opener.closed: Returns a boolean value indicating whether a window has been closed or not
- Opener.frames: Returns all iframe elements in the current window
- Opener.length: Returns the number of iframe elements in the current window
- Opener.opener: Returns a reference to the window that created the window
- Opener.parent: Returns the parent window of the current window
- Opener.self: Returns the current window
- Opener.top: Returns the topmost browser window
Attack
Although Facebook was at one point susceptible to this misnamed vulnerability, it no longer is, but it will serve us very well as an example here.


The website https://phishing.malicious.com (Site C) could be easily created with the SET tool, which is a tool that allows a website to be cloned simply.
Solution


Bonus
- Open a new tab and enter about:config
- Click on the “Accept the risk and continue” button.

- Search “dom.targetBlankNoOpener”

- Change the value to true and that’s it! You can now browse with peace of mind.
References

About the Author
Valentino Mantovani, is a Senior Software Programmer and IT security specialist with more than 10 years of experience. A person motivated by the challenge of learning to use new technologies to carry out a project.