6.7medium
Uptime Kuma has Persistentent User Sessions
- Severity
- 6.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.28% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g9v2-wqcj-j99g
Description
Uptime Kuma is a self-hosted monitoring tool. Prior to version 1.23.3, attackers with access to a user's device can gain persistent account access. This is caused by missing verification of Session Tokens after password changes and/or elapsed inactivity periods. Version 1.23.3 has a patch for the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| louislam uptime-kuma | < 1.23.3 | CVE List |
| uptime-kuma (npm) | before 1.23.3 | GitHub Advisory Database |
| uptime.kuma uptime_kuma | before 1.23.3 | NVD |
All scores
| GitHub_M | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Uptime Kuma is a self-hosted monitoring tool. Prior to version 1.23.3, attackers with access to a user's device can gain persistent account access. This is caused by missing verification of Session Tokens after password changes and/or elapsed inactivity periods. Version 1.23.3 has a patch for the issue.
GitHub Advisory Database
Summary
Attackers with access to a users' device can gain persistent account access. This is caused by missing verification of Session Tokens after password changes and/or elapsed inactivity-periods.
Details
uptime-kuma sets JWT tokens for users after successful authentication.
These tokens have the following design flaws:
- After successful login, a JWT token and it is stored in
sessionStorageorlocalStorage. Which of the two is decided based on theRemember Mebutton. The users' token is valid without any time limitation, even after long periods of inactivity. This increases the risk of session hijacking if, for example, a user forgets to log off and leaves the PC. - sessions are only deleted on the client side after a user loggs out, meaning a local attacker could reuse said token with deep system access over the browser
- If a user changes a password
- any previously logged in clients are not logged out
- previously issued tokens remained valid forever
These flaws allow user cookies to remain valid even after changing passwords or being inactive, posing a high security risk.
POC
Password resets not deactivating cookies
- Log in.
- Note the user cookie.
- Change your password.
- Attempt to log in again with the same cookie.
- The cookie remains valid despite the password change.
Inactivity not deactivating sessions
In testing, even after a period of over a day of inactivity, the session was still valid
Impact
Another person with local access to the device could take over the session permanently, even after hours of previous inactivity or a password change. Such activity would not be obvious to the user (see https://github.com/louislam/uptime-kuma/issues/3481 if you want to help with this).
With this gained account access, an attacker can cause:
confidentially loss
- monitors (including private ones not shared on public status pages)
- notification providers
- settings like
api-keys(only used for accessing/metrics) - settings like secrets like the
Steam API Key - maintenance periods
availability loss
- by creating a lot of monitors and setting the retention policy very high leading to degraded database performance or out of storage
- by creating a lot of
HTTP(s) - Browser Engine (Chrome/Chromium) (Beta)leading to RAM exhaustion
integrity loss
- by the attacker deleting a monitor
- by the attacker deleting a monitor's history
- by the atacker changing the meaning of a monitor (changing where it points)
scope creep
If operated in some restricted network, access to monitors may provide the ability to change the scope of the attack to a different piece of infrastructure, for example via SQL commands to a database server.
We have not classified this as changed scope because credentials stored in the application for accessing other systems are existing valid paths across the trust boundary, and the user should be aware of that.
NVD (es)
Uptime Kuma es una herramienta de monitoreo autohospedada. Antes de la versión 1.23.3, los atacantes con acceso al dispositivo de un usuario podían obtener acceso persistente a la cuenta. Esto se debe a la falta de verificación de los tokens de sesión después de cambios de contraseña y/o períodos de inactividad transcurridos. La versión 1.23.3 tiene un parche para el problema.
References
| https://github.com/louislam/uptime-kuma/security/advisories/GHSA-g9v2-wqcj-j99g | exploit, vendor-advisory, web | |
| https://github.com/louislam/uptime-kuma/issues/3481 | issue-tracking, mitigation, web | |
| https://github.com/louislam/uptime-kuma/commit/88afab6571ef7d4d41bb395cdb6ecd3968835a4a | patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-44400 | advisory | |
| https://github.com/louislam/uptime-kuma | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-44400 changed 2024-09-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g9v2-wqcj-j99g changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-44400 changed 2026-06-17 | Public domain |