magicstone-dev / ecko

Avoid target='_blank' attribute without rel='noopener noreferrer' JS-0422
Security
Major
5 months ago5 months old
Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations
 6  <div className='timeline-hint'>
 7    <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are not displayed.' values={{ resource }} /></strong>
 8    <br />
 9    <a href={url} target='_blank'><FormattedMessage id='account.browse_more_on_origin_server' defaultMessage='Browse more on the original profile' /></a>10  </div>
11);
12
Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations
31    const { href, children, className, onInterceptClick, ...other } = this.props;
32
33    return (
34      <a target='_blank' href={href} onClick={this.handleClick} {...other} className={`permalink${className ? ' ' + className : ''}`}>35        {children}
36      </a>
37    );