Summary
Chamilo LMS endpoints for saving SCORM learning objectives trust a user ID supplied in the request instead of checking the authenticated student's identity. An authenticated student may therefore overwrite another user's objectives if the endpoint does not verify ownership.
Affected context
The issue occurs in Chamilo LMS SCORM objective-saving endpoints:
main/lp/lp_ajax_save_objectives.phppublic/main/lp/lp_ajax_save_objectives.php
It affects deployments where these endpoints accept a request-supplied user ID and do not confirm that the authenticated user is authorized to modify the corresponding objectives.
Exploit preconditions
- Attack surface: SCORM learning objective save endpoints
- Required access: An authenticated student account
- Trigger point: A request to save learning objectives that includes a user ID
- Why exploitation is possible: The endpoint relies on the supplied ID without checking that it belongs to the authenticated user or that the user has permission to update those objectives.
Why this happens
The endpoint uses a client-controlled identifier to select whose objectives are updated, without enforcing an ownership or authorization check. This is an insecure direct object reference pattern and maps to CWE-639: Authorization Bypass Through User-Controlled Key. The authenticated user's identity should determine the permitted object scope rather than an untrusted request parameter.
Potential impact
- An authenticated student could overwrite another user's SCORM learning objectives.
- Learning progress or objective data could be altered without the affected user's authorization.
- Inaccurate records could affect reporting or downstream learning workflows.
General mitigation guidance
Defensive patterns include deriving the acting user's identity from the authenticated session and enforcing object-level authorization for every update. Treat request-supplied identifiers as untrusted, verify ownership or explicit permissions before modifying records, and restrict database operations to the authorized user's scope. Centralized authorization checks and least-privilege access can help reduce the impact of similar flaws.
How teams detect issues like this
Review handlers that accept user, account, or object identifiers and update records on their behalf. Look for authorization decisions based solely on request parameters, and verify that ownership checks occur before writes. Static analysis and code review can flag client-controlled identifiers used in database update paths; policy checks can require object-level authorization for sensitive operations. Audit logs may also help identify updates where the acting user and target owner differ.

