From c6ee5bacf089f271c13a888a7f422919de7d75b5 Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 3 Nov 2022 16:35:14 -0700 Subject: [PATCH] [Legacy Maps Plugin] Prevent reverse-tabnabbing (#2540) Signed-off-by: Miki Signed-off-by: Miki Signed-off-by: Ajay Gupta --- CHANGELOG.md | 2 ++ src/plugins/maps_legacy/public/map/map_messages.js | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1c1d514494a..058e5a05120e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### 🛡 Security +* [Legacy Maps Plugin] Prevent reverse-tabnabbing ([#2540](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2540)) + ### 📈 Features/Enhancements - [MD] Support legacy client for data source ([#2204](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2204)) diff --git a/src/plugins/maps_legacy/public/map/map_messages.js b/src/plugins/maps_legacy/public/map/map_messages.js index e87161c1ba1f..9606a72f959c 100644 --- a/src/plugins/maps_legacy/public/map/map_messages.js +++ b/src/plugins/maps_legacy/public/map/map_messages.js @@ -32,7 +32,7 @@ import React, { Fragment } from 'react'; import ReactDOM from 'react-dom'; import { FormattedMessage } from '@osd/i18n/react'; -import { EuiSpacer, EuiButtonEmpty, EuiEmptyPrompt } from '@elastic/eui'; +import { EuiSpacer, EuiButtonEmpty, EuiEmptyPrompt, EuiLink } from '@elastic/eui'; import { toMountPoint } from '../../../opensearch_dashboards_react/public'; export const createRegionDeniedWarning = (function () { @@ -112,9 +112,12 @@ export const createZoomWarningMsg = (function () { Please go to { wms } for more information." values={{ wms: ( - + {`Custom WMS Configuration`} - + ), }} />