Skip to content

Prevent a target _blank attacks with window.opener#1246

Merged
Alkarex merged 2 commits intoFreshRSS:devfrom
Alkarex:noopener
Sep 7, 2016
Merged

Prevent a target _blank attacks with window.opener#1246
Alkarex merged 2 commits intoFreshRSS:devfrom
Alkarex:noopener

Conversation

@Alkarex Alkarex added this to the 1.5.2-beta milestone Sep 7, 2016
@marienfressinaud
Copy link
Copy Markdown
Member

There is still a risk if a link from an article contains a <a href="..." target="_blank" /> link, isn't it? Or is target attribute filtered?

@Alkarex
Copy link
Copy Markdown
Member Author

Alkarex commented Sep 7, 2016

If there is no existing target="_blank", we add one anyway https://github.com/Alkarex/FreshRSS/blob/6450839b87b6a05b71af87490325acda9ffd5a44/p/scripts/main.js#L755 but that is fine with the rel="noreferrer" (which implies rel="noopener")

@marienfressinaud
Copy link
Copy Markdown
Member

Oops, I didn't pay attention to that line!

@Alkarex Alkarex merged commit 12d21c4 into FreshRSS:dev Sep 7, 2016
@Alkarex Alkarex deleted the noopener branch September 7, 2016 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants