Lunary Ai · Lunary · CVE-2024-6862
**Name of the Vulnerable Software and Affected Versions**
lunary-ai/lunary version 1.2.34
**Description**
A Cross-Site Request Forgery (CSRF) vulnerability exists due to overly permissive CORS settings, allowing an attacker to sign up for and create projects or use the instance as if they were a user with local access. The main attack vector is for instances hosted locally on personal machines, which are not publicly accessible. The CORS settings in the backend permit all origins, exposing unauthenticated endpoints to CSRF attacks.
**Recommendations**
For lunary-ai/lunary version 1.2.34, consider restricting the CORS settings to only permit necessary origins, and implement proper CSRF protection mechanisms to prevent unauthorized access. As a temporary workaround, consider disabling unauthenticated endpoints until a patch is available. Restrict access to the instance, especially for those hosted locally on personal machines, to minimize the risk of exploitation.