First published: Sat Jun 08 2024(Updated: )
In lunary-ai/lunary version v1.2.13, an incorrect 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.
Credit: security@huntr.dev security@huntr.dev
Affected Software | Affected Version | How to fix |
---|---|---|
npm/lunary | <1.2.26 | 1.2.26 |
lunary lunary | =1.2.13 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-4146 is classified as a critical vulnerability due to its potential for unauthorized access and manipulation of sensitive projects.
To fix CVE-2024-4146, upgrade lunary to version 1.2.26 or later where the vulnerability has been patched.
CVE-2024-4146 affects lunary version 1.2.13 and prior versions.
CVE-2024-4146 can be exploited by unauthorized users to access and manipulate projects within an organization.
Yes, CVE-2024-4146 stems from an incorrect authorization vulnerability in the checkProjectAccess method.