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

fix reverse tabnabbing attack possibility #10675

Merged
merged 2 commits into from Nov 15, 2022
Merged

Conversation

chintannp
Copy link
Contributor

@chintannp chintannp commented Nov 15, 2022

Description of changes

Reverse tabnabbing is an attack that is possible when a link is configured to open a new tab in a browser by, for example, adding the target="_blank" attribute to an tag. If done incorrectly, the new page is able to control the referrer and opener objects of the parent window, and use that control to replace the parent site with a phishing site.

To mitigate the possibility of Reverse Tabnabbing, rel="noopener noreferrer" needs to be added to <a> tags.

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chintannp chintannp requested a review from a team as a code owner November 15, 2022 19:27
Copy link
Contributor

@elorzafe elorzafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Thanks @chintannp

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.

None yet

4 participants