Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-9mrq-cjgh-32g2

Опубликовано: 13 сент. 2019
Источник: github
Github: Прошло ревью
CVSS4: 2.7

Описание

smartbanner.js rel noopener vulnerability

rel noopener vulnerability

Impact

Clicking on smartbanner View link and navigating to 3rd party page leaves window.opener exposed. It may allow hostile 3rd parties to abuse window.opener, e.g. by redirection or injection on the original page with smartbanner.

Patches

rel="noopener" is automatically populated to links as of v1.14.1 which is a recommended upgrade to resolve the vulnerability.

Workarounds

If you can not upgrade to v1.14.1:

  1. Ensure View link is only taking users to App Store or Google Play Store where security is guarded by respective app store security teams

  2. If View link is going to a 3rd party page, limit smartbanner.js to be used on iOS that decreases the scope of the vulnerability since as of Safari 12.1, rel="noopener" is imposed on all target="_blank" links.

    Following combination of smartbanner meta tags can be used to achieve the above:

    <meta name="smartbanner:enabled-platforms" content="none"> <meta name="smartbanner:include-user-agent-regex" content="Mobile.*Safari">

References

For more information

If you have any questions or comments about this advisory:

Пакеты

Наименование

smartbanner.js

npm
Затронутые версииВерсия исправления

< 1.14.1

1.14.1

EPSS

Процентиль: 48%
0.00253
Низкий

2.7 Low

CVSS4

Дефекты

CWE-601
CWE-79

Связанные уязвимости

nvd
12 месяцев назад

smartbanner.js is a customizable smart app banner for iOS and Android. Prior to version 1.14.1, clicking on smartbanner `View` link and navigating to 3rd party page leaves `window.opener` exposed. It may allow hostile third parties to abuse `window.opener`, e.g. by redirection or injection on the original page with smartbanner. `rel="noopener"` is automatically populated to links as of `v1.14.1` which is a recommended upgrade to resolve the vulnerability. Some workarounds are available for those who cannot upgrade. Ensure `View` link is only taking users to App Store or Google Play Store where security is guarded by respective app store security teams. If `View` link is going to a third party page, limit smartbanner.js to be used on iOS that decreases the scope of the vulnerability since as of Safari 12.1, `rel="noopener"` is imposed on all `target="_blank"` links. Version 1.14.1 of smartbanner.js contains a fix for the issue.

EPSS

Процентиль: 48%
0.00253
Низкий

2.7 Low

CVSS4

Дефекты

CWE-601
CWE-79