Project

General

Profile

Actions

Feature #78488

closed

Epic #83559: SEO enhancements in Core

Add rel="noopener noreferrer" to links when target is set to _blank

Added by Markus Hölzle about 8 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Security
Target version:
-
Start date:
2016-10-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hey there,

is there a solution for the known security issue with which one the websites are vulnerable for phishing with javascripts "window.opener.location"?
To prevent this issue you have to add an attribute rel="noopener noreferrer" to every a-Tag which opens an external link (see https://mathiasbynens.github.io/rel-noopener/).

I tried to insert this attribute to the core in the function "\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->typoLink()" but there is no possibility to add dynamic attributes to an link.

Is it possible to add a typoscript configuration like "page.config.extTarget" for the "rel" attribute?

The current workaround is to add this attribute with javascript - but I think there should be a solution from the TYPO3 core. What do you think?

Regards,
Markus


Related issues 10 (1 open9 closed)

Related to TYPO3 Core - Feature #34288: Typolink should allow rel attributeClosed2012-02-26

Actions
Related to TYPO3 Core - Feature #5341: Page's "target" field inprovmentsClosed2009-11-12

Actions
Related to TYPO3 Core - Task #89347: Provide strong defaults for anchor noreferred/noopener attributeNew2019-10-04

Actions
Related to TYPO3 Core - Bug #89338: Links such as tel: ... in content elements cause an errorClosed2019-10-03

Actions
Related to TYPO3 Core - Bug #89757: Fix noopener noreferrer issueClosedBenni Mack2019-11-23

Actions
Related to TYPO3 Core - Bug #89771: rel="noreferer" should be set for all new windows, not just _blankClosed2019-11-25

Actions
Related to TYPO3 Core - Bug #95051: rel="noreferrer" is not set by cross site linksClosed2021-08-31

Actions
Related to TYPO3 Core - Task #96379: [FEATURE] Add rel="noopener noreferrer" to all f:link.external linksRejected2021-12-17

Actions
Has duplicate TYPO3 Core - Bug #78507: Links set to target="_blank" without rel="noopener" are vulnerable to reverse tabnabbing attacksClosed2016-10-30

Actions
Has duplicate TYPO3 Core - Feature #82055: Add noopener behavior to external linksClosed2017-08-07

Actions
Actions

Also available in: Atom PDF