High severity · published Dec 11, 2023
CVE-2023-49805
Uptime Kuma Missing Origin Validation in WebSockets
8.8
CVSS
0.4%
EPSS
No
On KEV
Description
Uptime Kuma is an easy-to-use self-hosted monitoring tool. Prior to version 1.23.9, the application uses WebSocket (with Socket.io), but it does not verify that the source of communication is valid. This allows third-party website to access the application on behalf of their client. When connecting to the server using Socket.IO, the server does not validate the `Origin` header leading to other site being able to open connections to the server and communicate with it. Other websites still need to authenticate to access most features, however this can be used to circumvent firewall protections made in place by people deploying the application. Without origin validation, Javascript executed from another origin would be allowed to connect to the application without any user interaction. Without login credentials, such a connection is unable to access protected endpoints containing sensitive data of the application. However, such a connection may allow attacker to further exploit unseen vulnerabilities of the application. Users with "No-auth" mode configured who are relying on a reverse proxy or firewall to provide protection to the application would be especially vulnerable as it would grant the attacker full access to the application. In version 1.23.9, additional verification of the HTTP Origin header has been added to the socket.io connection handler. By default, if the `Origin` header is present, it would be checked against the Host header. Connection would be denied if the hostnames do not match, which would indicate that the request is cross-origin. Connection would be allowed if the `Origin` header is not present. Users can override this behavior by setting environment variable `UPTIME_KUMA_WS_ORIGIN_CHECK=bypass`.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
UP
uptime-kuma · louislam
< 1.23.9 · source: vendor
DO
Dockge · Dockge.kuma
before 1.3.3 · source: NVD
UK
Uptime Kuma · Uptime.kuma
before 1.23.9 · source: NVD
Affected product
UP
uptime-kuma
louislam
More from uptime-kuma
8.8
CVE-2023-36821
Uptime Kuma vulnerable to authenticated remote code execution via malicious plugin installation
8.1
CVE-2026-71285
Uptime Kuma Stored XSS via Matomo Analytics Site ID on Public Status Pages
8.1
CVE-2023-36822
Uptime Kuma authenticated path traversal via plugin repository name may lead to unavailability or data loss
7.8
CVE-2023-49804
Uptime Kuma Password Change Vulnerability
7.8
CVE-2023-44400
Uptime Kuma has Persistentent User Sessions