CVE-2024-56331
Last modified
CVE-2024-56331 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. 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. EPSS estimates a 1.79% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-56331?
How severe is CVE-2024-56331?
How do I fix CVE-2024-56331?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-56326Jinja is an extensible templating engine. Prior to 3.1.5, An…7.8
- CVE-2024-56327pyrage is a set of Python bindings for the rage file encrypt…9.8
- CVE-2024-56328Discourse is an open source platform for community discussio…6.1
- CVE-2024-56329Socialstream is a third-party package for Laravel Jetstream.…8.9
- CVE-2024-5633Longse model LBH30FE200W cameras, as well as products based …7.5
- CVE-2024-56330Stardust is a platform for streaming isolated desktop contai…9.3
- CVE-2024-56332Next.js is a React framework for building full-stack web app…5.3
- CVE-2024-56333Onyxia is a web app that aims at being the glue between mult…9.4
- CVE-2024-56334systeminformation is a System and OS information library for…7.8
- CVE-2024-56335vaultwarden is an unofficial Bitwarden compatible server wri…7.5
- CVE-2024-56336A vulnerability has been identified in SINAMICS S200 (All ve…9.8
- CVE-2024-56337Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabil…9.8
Are you affected by CVE-2024-56331?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
