From 8657ad4278334a072dc88ce8bb0ea4090fd944e2 Mon Sep 17 00:00:00 2001 From: John Wilson Date: Thu, 1 Oct 2020 23:25:38 +0800 Subject: [PATCH] Fix(React DevTools) - prevent phishing attacks (#19934) When a link opens a URL in a new tab with target="_blank", it is very simple for the opened page to change the location of the original page because the JavaScript variable window.opener is not null and thus "window.opener.location can be set by the opened page. This exposes the user to very simple phishing attacks. --- packages/react-devtools/app.html | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-devtools/app.html b/packages/react-devtools/app.html index c40b72ab65..c2193698fc 100644 --- a/packages/react-devtools/app.html +++ b/packages/react-devtools/app.html @@ -121,6 +121,7 @@ id="rn-help-link" class="link" target="_blank" + rel="noopener noreferrer" href="https://reactnative.dev/docs/debugging#accessing-the-in-app-developer-menu" >in-app developer menu to connect.