Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potentially unsafe external link #8

Open
Gijutsu opened this issue Oct 1, 2020 · 0 comments
Open

Potentially unsafe external link #8

Gijutsu opened this issue Oct 1, 2020 · 0 comments

Comments

@Gijutsu
Copy link
Member

Gijutsu commented Oct 1, 2020

HTML links that open in a new tab or window allow the target page to access the DOM of the origin page using window.opener unless link type noopener or noreferrer is specified. This is a potential security risk.

Recommendation
Specify the link type by adding an attribute rel="noopener noreferrer".

For more info see: https://github.com/SUNET/sunet-web-frontend/security/code-scanning/1

For a cool POC of how this works, please give https://mathiasbynens.github.io/rel-noopener/ a try :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant