Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS12NHYyLThoODgtNjVxas4AA3W6

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

Permalink: https://github.com/advisories/GHSA-v4v2-8h88-65qj
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12NHYyLThoODgtNjVxas4AA3W6
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 5 months ago
Updated: 5 months ago


CVSS Score: 6.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Identifiers: GHSA-v4v2-8h88-65qj, CVE-2023-49276
References: Repository: https://github.com/louislam/uptime-kuma
Blast Radius: 1.0

Affected Packages

npm:uptime-kuma
Dependent packages: 0
Dependent repositories: 0
Downloads: 51 last month
Affected Version Ranges: >= 1.20.0, <= 1.23.6
Fixed in: 1.23.7
All affected versions:
All unaffected versions: