CVE-2024-4146 Incorrect Authorization in lunary-ai/lunary
Attackers can access and modify unauthorized projects due to flawed authorization checks in the Lunary AI web application.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-4146?
CVE-2024-4146 is a critical missing authorization vulnerability in Lunary Lunary, published on 8 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-863
Which versions are affected by CVE-2024-4146?
It affects 1 product.
Products include Lunary Lunary.
How do I fix CVE-2024-4146?
No fix has been published for CVE-2024-4146 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-4146 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-4146 exists.
Other vulnerabilities in Lunary Lunary
- CVE-2024-8999 Improper Access Control in lunary-ai/lunary
- CVE-2024-9095 Improper Authorization in lunary-ai/lunary
- CVE-2024-7456 SQL Injection in lunary-ai/lunary
- CVE-2024-5386 Account Hijacking via Password Reset Token Leak in lunary-ai/lunary
- CVE-2024-3379 Incorrect Authorization in lunary-ai/lunary