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.
The vulnerability exists in the `checkProjectAccess` method in the authorization middleware. The verification mechanism only checks whether the user belongs to the organization that owns the project, omitting the necessary verification of the `account_project` table for explicit access rights to the specific project. Such incomplete permission checking allows any user in a given organization to access projects they should not formally have access to.
The attacker gains full control over all project resources — they can create, read, modify, and delete any resources, leading to violations of confidentiality and integrity of sensitive organizational data.
Apply the patch available in the vendor repository (commit c43b6c62035f32ca455f66d5fd22ba661648cde7 on GitHub) and update the application to the version containing the fix according to vendor references.
Lunary (lunary-ai/lunary) in version v1.2.13
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLunary
APPLunary1.2.13
Related vulnerabilities
Stored XSS w Lunary — wstrzyknięcie skryptu przez zmienną środowiskową
Brak kontroli dostępu w API BigQuery — eksport całej bazy danych w Lunary
SQL Injection w trasie /api/v1/external-users aplikacji Lunary
Lunary: brak kontroli dostępu do konfiguracji SAML (nieautoryzowana zmiana)
SSRF w Lunary – nieautoryzowane żądania przez endpoint SAML IdP