NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-29194: OneUptime Vulnerable to a Privilege Escalation via Local Storage Key Manipulation

highCVSS 3.1 8.3GHSA-246p-xmg8-wmcq

Summary A security vulnerability exists in oneuptime's local storage handling, where a regular user can escalate privileges by modifying the ismasteradmin 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.

Published Mar 25, 2024 · Updated Mar 26, 2024

Affected packages

@oneuptime/model

Ecosystem
npm
Affected
< 7.0.1815
Fixed in
7.0.1815
Check
npm ls @oneuptime/model

@oneuptime/common-server

Ecosystem
npm
Affected
< 7.0.1815
Fixed in
7.0.1815
Check
npm ls @oneuptime/common-server

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to saunders-jake.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology