GitHub Advisoryadvisory · npm
GHSA-v4v2-8h88-65qj Attribute Injection leading to XSS(Cross-Site-Scripting)
MEDIUM
Official page ↗
- Aliases
- CVE-2023-49276
- Ecosystem
- npm
- Packages
- uptime-kuma
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2023-11-24
Affected packages
• npm uptime-kuma: >= 1.20.0, < 1.23.7 → fixed in 1.23.7
Description
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:
Related
Alias · CVE (1)
- CVE-2023-49276 Uptime Kuma is an open source self-hosted monitoring tool. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness