Lucene search

K
githubGitHub Advisory DatabaseGHSA-V4V2-8H88-65QJ
HistoryNov 24, 2023 - 4:54 p.m.

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

2023-11-2416:54:20
CWE-79
GitHub Advisory Database
github.com
17
google analytics
attribute injection
xss
vulnerability
injection
security issue
cross-site-scripting
container
louislam/uptime-kuma
status page

CVSS3

6.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N

AI Score

6.8

Confidence

High

EPSS

0.001

Percentile

17.0%

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

Affected configurations

Vulners
Node
uptime-kuma_projectuptime-kumaRange1.20.01.23.6
VendorProductVersionCPE
uptime-kuma_projectuptime-kuma*cpe:2.3:a:uptime-kuma_project:uptime-kuma:*:*:*:*:*:*:*:*

CVSS3

6.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N

AI Score

6.8

Confidence

High

EPSS

0.001

Percentile

17.0%

Related for GHSA-V4V2-8H88-65QJ