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

exploitDog

github логотип

GHSA-v4v2-8h88-65qj

Опубликовано: 24 нояб. 2023
Источник: github
Github: Прошло ревью
CVSS3: 6.1

Описание

Attribute Injection leading to XSS(Cross-Site-Scripting)

Summary

Google Analytics element Attribute Injection leading to XSS

Details

Since the custom status interface can set an independent Google Analytics ID and the template has not been sanitized, there is an attribute injection vulnerability here, which can lead to XSS attacks. image

PoC

  1. Run the latest version of the louislam/uptime-kuma container and initialize the account password.
  2. Create a new status page.
  3. Edit the status page and change the Google Analytics ID to following payload(it only works for firefox. Any attribute can be injected, but this seems the most intuitive):
123123" onafterscriptexecute=alert(window.name+1),eval(window.name) a="x
  1. Click Save and return to the interface. XSS occurs. screenshots: image

9d0603e634fb7da2e83a0a45dc0a36ac

Пакеты

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

uptime-kuma

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

>= 1.20.0, <= 1.23.6

1.23.7

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79

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

CVSS3: 6.3
nvd
около 2 лет назад

Uptime Kuma is an open source self-hosted monitoring tool. In affected versions the Google Analytics element in vulnerable to Attribute Injection leading to Cross-Site-Scripting (XSS). Since the custom status interface can set an independent Google Analytics ID and the template has not been sanitized, there is an attribute injection vulnerability here, which can lead to XSS attacks. This vulnerability has been addressed in commit `f28dccf4e` which is included in release version 1.23.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79