Skip to content

waltertamboer/experiment-html-js-window-opener-vuln

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

window-opener-vuln

An example of how to exploit window.opener.

Problem

When setting the target attribute on links (or other HTML elements that allow the target attribute) with a _blank value, users can get access to the Window object of the tab that opened the link. In case of applications where users can post content, this functionality can be abused for Phishing.

Solution

Always use the rel="noopener" attribute on links that contain a target="_blank" attribute. As a rule of thumb do this unless you have a very good reason not to.

References

Releases

No releases published

Packages

No packages published

Languages