SCA: security update for uptime-kuma (GHSA-2qgm-m29m-cj2h)

medium Tenable Cloud Security Plugin ID 409042

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Uptime Kuma is an open source, self-hosted monitoring tool. An **Improper URL Handling Vulnerability**
allows an attacker to access sensitive local files on the server by exploiting the `file:///` protocol.
This vulnerability is triggered via the **"real-browser"** request type, which takes a screenshot of the
URL provided by the attacker. By supplying local file paths, such as `file:///etc/passwd`, an attacker can
read sensitive data from the server. This vulnerability arises because the system does not properly
validate or sanitize the user input for the URL field. Specifically: 1. The URL input (`<input
data-v-5f5c86d7="" id="url" type="url" class="form-control" pattern="https?://.+" required="">`) allows
users to input arbitrary file paths, including those using the `file:///` protocol, without server-side
validation. 2. The server then uses the user-provided URL to make a request, passing it to a browser
instance that performs the "real-browser" request, which takes a screenshot of the content at the given
URL. If a local file path is entered (e.g., `file:///etc/passwd`), the browser fetches and captures the
file’s content. Since the user input is not validated, an attacker can manipulate the URL to request local
files (e.g., `file:///etc/passwd`), and the system will capture a screenshot of the file's content,
potentially exposing sensitive data. Any **authenticated user** who can submit a URL in "real-browser"
mode is at risk of exposing sensitive data through screenshots of these files. This issue has been
addressed in version 1.23.16 and all users are advised to upgrade. There are no known workarounds for this
vulnerability. (CVE-2024-56331)

See Also

https://github.com/advisories/GHSA-2qgm-m29m-cj2h

Plugin Details

Severity: Medium

ID: 409042

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Risk Information

VPR

Risk Factor: Medium

Score: 5.2

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:N/A:N

CVSS Score Source: CVE-2024-56331

CVSS v3

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 6.1

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/20/2024

Vulnerability Publication Date: 12/20/2024

Reference Information

CVE: CVE-2024-56331

cwe: CWE-22