# GHSA-WJXH-PVWH-H84P: IDOR in lp\_ajax\_save\_objectives.php — Attacker Can Overwrite Any User's SCORM Objectives via uid Parameter (CWE-639) (\< 1.11.40, \< 2.0.1)

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-07-07
- Modified: 2026-07-07

## Tracked as

- [CVE-2026-45142](https://cve.now/CVE-2026-45142.md): Chamilo LMS unauthorized overwrite of SCORM objectives via IDOR

## Affected versions

- chamilo/chamilo-lms (Packagist): through 2.0.0

## Description

VULNERABILITY REPORT — Chamilo LMS
====================================
TARGET
------
App:     Chamilo LMS
Repo:    https://github.com/chamilo/chamilo-lms
Version: 2.1.0 (latest)
CWE:     CWE-639 — Authorization Bypass Through User-Controlled Key
CVSS:    7.1 HIGH (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L)

SUMMARY
-------
Any logged-in student can overwrite another student's SCORM learning
objectives by changing the "uid" parameter in a request.
No ownership check is performed.

NOTE: CVE-2026-33702 patched lp_ajax_save_item.php for this exact pattern.
The SAME bug exists in lp_ajax_save_objectives.php — which was NOT patched.

FIX
---
Replace $_REQUEST['uid'] with api_get_user_id() in all 3 files.
This is the same fix applied to lp_ajax_save_item.php for CVE-2026-33702.

CONTACT
Santhoshini Ganta
Email:    [santhoshinive75@gmail.com]
LinkedIn: (http://linkedin.com/in/santhoshini-g-1440621ba)

## References

- https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-wjxh-pvwh-h84p

Page: https://cve.now/GHSA-WJXH-PVWH-H84P
