CVE-2024-56331

Source
https://cve.org/CVERecord?id=CVE-2024-56331
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56331.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56331
Aliases
Published
2024-12-20T19:48:45.641Z
Modified
2026-04-10T05:18:45.887586Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Local File Inclusion (LFI) via Improper URL Handling in uptime-kuma's `Real-Browser` monitor
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56331.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/louislam/uptime-kuma

Affected ranges

Type
GIT
Repo
https://github.com/louislam/uptime-kuma
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.23.0"
        },
        {
            "fixed": "1.23.16"
        }
    ]
}
Type
GIT
Repo
https://github.com/louislam/uptime-kuma
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "= 2.0.0-beta.0"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.10
1.0.2
1.0.3
1.0.4
1.0.5
1.0.7
1.0.8
1.0.9
1.1.0
1.10.0
1.10.1
1.10.2
1.11.0
1.11.1
1.11.2
1.11.3
1.11.4
1.12.0
1.12.1
1.14.0-beta.1
1.14.0-beta.2
1.16.0-beta.0
1.17.0
1.17.0-beta.0
1.17.0-beta.1
1.17.1
1.19.0
1.19.0-beta.1
1.19.0-beta.2
1.19.1
1.19.2
1.19.3
1.19.4
1.2.0
1.20.0-beta.0
1.21.0
1.21.0-beta.0
1.21.0-beta.1
1.21.1
1.21.2
1.21.2-beta.0
1.23.0
1.23.0-beta.0
1.23.0-beta.1
1.23.1
1.23.10
1.23.11
1.23.12
1.23.13
1.23.14
1.23.15
1.23.2
1.23.3
1.23.4
1.23.5
1.23.6
1.23.7
1.23.8
1.23.9
1.3.0
1.3.1
1.3.2
1.6.0
1.7.0
1.9.0
1.9.1
2.*
2.0.0-beta.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56331.json"