Skip to content

lunary-ai/lunary allows users unauthorized access to projects

Critical severity GitHub Reviewed Published Jun 8, 2024 to the GitHub Advisory Database • Updated Jul 22, 2024

Package

npm lunary (npm)

Affected versions

< 1.2.26

Patched versions

1.2.26

Description

In lunary-ai/lunary version v1.2.13, an improper authorization vulnerability exists that allows unauthorized users to access and manipulate projects within an organization they should not have access to. Specifically, the vulnerability is located in the checkProjectAccess method within the authorization middleware, which fails to adequately verify if a user has the correct permissions to access a specific project. Instead, it only checks if the user is part of the organization owning the project, overlooking the necessary check against the account_project table for explicit project access rights. This flaw enables attackers to gain complete control over all resources within a project, including the ability to create, update, read, and delete any resource, compromising the privacy and security of sensitive information.

References

Published by the National Vulnerability Database Jun 8, 2024
Published to the GitHub Advisory Database Jun 8, 2024
Reviewed Jun 10, 2024
Last updated Jul 22, 2024

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2024-4146

GHSA ID

GHSA-w5xm-mx47-v7c8

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.