CVE-2025-4962 in lunaryinfo

Summary

by MITRE • 08/18/2025

An Insecure Direct Object Reference (IDOR) vulnerability was identified in the `POST /v1/templates` endpoint of the Lunary API, affecting versions up to 0.8.8. This vulnerability allows authenticated users to create templates in another user's project by altering the `projectId` query parameter. The root cause of this issue is the absence of server-side validation to ensure that the authenticated user owns the specified `projectId`. The vulnerability has been addressed in version 1.9.23.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 08/18/2025

The identified vulnerability represents a critical Insecure Direct Object Reference flaw that undermines the authorization mechanisms within the Lunary API platform. This security weakness specifically targets the POST /v1/templates endpoint, where authenticated users can manipulate the projectId parameter to create templates within projects they do not own. The vulnerability stems from insufficient server-side validation controls that fail to verify ownership permissions before processing template creation requests. This type of flaw falls under CWE-639, which categorizes insecure direct object references as a serious authorization bypass vulnerability that can lead to unauthorized access and data manipulation across user boundaries.

The technical exploitation of this vulnerability requires minimal effort from an attacker who is already authenticated to the system. By simply modifying the projectId query parameter in the API request, an authenticated user can effectively impersonate another user's project context and create templates within that project. This misconfiguration allows for cross-user template creation, potentially leading to unauthorized data exposure, project manipulation, and violation of data isolation principles. The vulnerability represents a fundamental breakdown in the application's access control model, where client-side parameter manipulation directly translates to server-side unauthorized operations without proper validation checks.

The operational impact of this vulnerability extends beyond simple unauthorized template creation, potentially enabling broader system compromise and data integrity violations. An attacker could leverage this flaw to pollute another user's project with malicious templates, disrupt project workflows, or gain insights into other users' project structures and data. The vulnerability affects all versions up to 0.8.8, indicating a prolonged period where this authorization bypass was possible, potentially allowing for undetected exploitation. This type of issue commonly maps to attack techniques described in the MITRE ATT&CK framework under privilege escalation and credential access categories, where attackers exploit weak access controls to expand their operational scope.

Organizations utilizing the Lunary API should immediately implement the patch available in version 1.9.23, which addresses the missing server-side validation controls. The remediation involves implementing robust authorization checks that verify the authenticated user's ownership rights before permitting template creation within any specified project. Additional mitigations should include comprehensive logging of project access attempts, implementation of proper input validation for all user-supplied parameters, and regular security testing of API endpoints to identify similar authorization gaps. The vulnerability highlights the critical importance of server-side validation in API security, where client-side controls alone cannot prevent unauthorized access patterns and must be complemented by proper backend authorization enforcement.

Responsible

@huntr Ai

Reservation

05/19/2025

Disclosure

08/18/2025

Moderation

accepted

CPE

ready

EPSS

0.00047

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!