Issue Feature Closed

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

Markus Hölzle 10/28/16, 15:11 updated 11/17/22, 08:35

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

Reviews 1