Advisory

GHSA-v4v2-8h88-65qj

Also known as: CVE-2023-49276

Summary

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

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-11-24 16:54 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

uptime-kuma

npm · All systems

Affected

  • introduced 1.20.0, fixed 1.23.7 (semver)

Fixed versions

1.23.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences