logo

CVE-2024-29194 @oneuptime/model

Package

Manager: npm
Name: @oneuptime/model
Vulnerable Version: >=0 <7.0.1815

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

EPSS: 0.00039 pctl0.10362

Details

OneUptime Vulnerable to a Privilege Escalation via Local Storage Key Manipulation ## Summary A security vulnerability exists in oneuptime's local storage handling, where a regular user can escalate privileges by modifying the `is_master_admin` key to `true`. This allows unauthorized access to administrative functionalities. ## Details The vulnerability lies in the improper validation of client-side stored data within the web application. Specifically, the `is_master_admin` key, stored in the local storage of the browser, can be manipulated by an attacker. By changing this key from false to true, the application grants administrative privileges to the user, without proper server-side validation. ## POC (I am using Firefox Developer to demonstrate this vulnerability) Log in as a normal user. Open developer tools (hit F12), click Storage, then Local Storage. Modify the `is_master_admin` key from `false` to `true`. ## Impact This vulnerability represents a high security risk as it allows any authenticated user to gain administrative privileges through client-side manipulation. Most of the admin previlages were disabled except the user list. Where an attacker could see all the list of users who signed up to OneUptome. ## Patch This has been patched in 7.0.1815

Metadata

Created: 2024-03-25T19:37:27Z
Modified: 2024-03-25T19:37:27Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-246p-xmg8-wmcq/GHSA-246p-xmg8-wmcq.json
CWE IDs: ["CWE-639"]
Alternative ID: GHSA-246p-xmg8-wmcq
Finding: F039
Auto approve: 1