CVE-2023-49276 – uptime-kuma
Package
Manager: npm
Name: uptime-kuma
Vulnerable Version: >=1.20.0 <1.23.7
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00525 pctl0.66047
Details
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.  ### 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 ``` 4. Click Save and return to the interface. XSS occurs. screenshots:  
Metadata
Created: 2023-11-24T16:54:20Z
Modified: 2023-12-07T22:59:07Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-v4v2-8h88-65qj/GHSA-v4v2-8h88-65qj.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-v4v2-8h88-65qj
Finding: F425
Auto approve: 1