Skip to content

add rel attribute to prevent clickjacking#330

Merged
LisaFC merged 1 commit intogoogle:masterfrom
lpmi-13:fix_security_issue
Aug 25, 2020
Merged

add rel attribute to prevent clickjacking#330
LisaFC merged 1 commit intogoogle:masterfrom
lpmi-13:fix_security_issue

Conversation

@lpmi-13
Copy link
Copy Markdown
Contributor

@lpmi-13 lpmi-13 commented Aug 25, 2020

noopener and noreferrer both address clickjacking vulnerabilities on target="_blank", though noopener isn't supported in some legacy browsers, while noreferrer is supported, and is ignored by more recent browsers. So adding both is currently the easiest way to support everything.

`noopener` and `noreferrer` both address clickjacking vulnerabilities on `target="_blank"`, though `noopener` isn't supported in some legacy browsers, while `noreferrer` is supported, and is ignored by more recent browsers. So adding both is currently the easiest way to support everything.
@lpmi-13
Copy link
Copy Markdown
Contributor Author

lpmi-13 commented Aug 25, 2020

for reference, currently causing this security vulnerability in the kubernetes contributor website

clickjacking on kubernetes dev

@LisaFC
Copy link
Copy Markdown
Collaborator

LisaFC commented Aug 25, 2020

Thanks for this!

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

Successfully merging this pull request may close these issues.

2 participants