Ce mail provient de l'extérieur, restons vigilants

=====================================================================


                            CERT-Renater

                Note d'Information No. 2026/VULN1187

_____________________________________________________________________

DATE                : 25/11/2026

HARDWARE PLATFORM(S): /

OPERATING SYSTEM(S): Systems running chamilo-lms versions prior to
                                         3.0.0.

====================================================================
https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-4j89-qjx2-3wcr
https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-rrjh-7f5h-8w96
https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-2prx-vqcv-mv68
https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-r6vc-jgrj-jqp6
https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-jf75-vp35-w4mg
_____________________________________________________________________

Unauthenticated arbitrary resource file deletion via
`delete_variant` endpoint (< 3.0.0)

Critical	ywarnier published GHSA-4j89-qjx2-3wcr

Package
 chamilo/chamilo-lms (Composer)

Affected versions
>= 2.0.0, <= 2.0.3

Patched versions
3.0.0


Description

Summary
Chamilo LMS 2.x exposes an unauthenticated endpoint that deletes
ResourceFile entities by their numeric primary key:

DELETE /r/resource_files/{id}/delete_variant
The endpoint performs no authentication, authorization, ownership,
tenant, CSRF, or resource-type validation. Despite being named
delete_variant, it does not verify that the selected ResourceFile
is an access-URL-specific variant. An unauthenticated attacker
can therefore delete ordinary primary resource files as well as
variants.

Deleting the entity makes the associated resource unavailable. The
Vich uploader mapping also has delete_on_remove: true, causing the
corresponding stored file to be deleted when Doctrine removes the
entity.

Impact
An unauthenticated remote attacker can delete arbitrary Chamilo
resource files. ResourceFile is shared by multiple LMS features,
so affected content may include:

course documents;
personal files;
assignments and corrections;
message and forum attachments;
learning-path assets;
other resources stored through the common resource subsystem.
By iterating numeric IDs, an attacker can cause platform-wide
loss of stored educational content and attachments. The operation
requires no privileges and no user interaction.

Affected versions
The vulnerable handler is present in the stable v2.0.0, v2.0.1,
v2.0.2, and v2.0.3 tags and remains present in master at
commit 348978f3e0dd57b23190bdda174be3bd1c87bcd4 (2026-07-13).

Chamilo 1.11.x was not assessed as affected by this specific
Symfony route.

Recommended remediation
Require an authenticated user for the route.
Load the ResourceFile, obtain its ResourceNode, and enforce
EDIT or DELETE permission through the existing resource-node
voter before removal.

Verify that the object is genuinely a variant, for example by
requiring a non-null accessUrl, if that is the endpoint's
intended purpose.

Enforce access-URL/tenant ownership.
Require a valid CSRF token when cookie-based web sessions can
reach the endpoint.

Return 404 for files outside the requester's authorization scope
to avoid an ID oracle.

Suggested regression tests should verify that:

an unauthenticated request is rejected;
a student cannot delete another user's resource file;
a teacher cannot delete a resource outside a course they manage;
a primary file with accessUrl === null cannot be deleted through
the variant endpoint;
an authorized editor can delete a legitimate variant.


Severity
Critical
9.1/ 10
CVSS v3 base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

CVE ID
No known CVE

Weaknesses
WeaknessCWE-639
WeaknessCWE-862

Credits
@l0h1nth l0h1nth
Reporter

_____________________________________________________________________

Stored XSS in course chat leads to account takeover (sanitizer runs
before Markdown) (< 3.0.0)

High	ywarnier published GHSA-rrjh-7f5h-8w96 

Package
 chamilo/chamilo-lms (Composer)

Affected versions
>= 2.0

Patched versions
3.0.0

Description

Summary
A normal student account can store JavaScript in a course chat that runs
in any other participant's session. The chat sanitizes each message and
then renders Markdown, so the sanitizer never sees the HTML that Markdown
creates. A message like [Click here](javascript:alert(1)) becomes a
live <a href="javascript:alert(1)"> that is saved and shown to everyone
in the chat.

The script runs in the victim's authenticated, same-origin session, so it
can call Chamilo's own endpoints as them (the session cookie rides along
automatically even if it is HttpOnly, and the CSRF token is read from the
page). This reaches account takeover in the default configuration: the
setting allow_users_to_change_email_with_no_password defaults to enabled,
so the script can change the victim's email to an attacker address without
the password (public/main/auth/profile.php, applied immediately), then a
password reset to that address completes the takeover. A direct password
change is not possible because it requires the current password
(ChangePasswordType.php). When a teacher, coach or admin reads the chat,
the same script can drive their privileged actions (for an admin,
creating a new admin account requires no re-authentication).

Root cause
public/main/inc/lib/CourseChatUtils.php, prepareMessage():

$message = Security::remove_XSS($message);            // sanitizes the RAW text
// ... autolink ...
$message = MarkdownExtra::defaultTransform($message); // creates HTML, never re-sanitized
At the sanitize step the input is still Markdown source ([x](javascript:alert(1))), which is plain text, so HTMLPurifier leaves it alone. Markdown then produces the javascript: anchor. saveMessage() stores that HTML and course_chat.ajax.php (write / track) serves it raw to every participant. The project uses the correct order in plugin.ajax.php:67 (Markdown first, sanitize last); the chat has it reversed.

Fix
Move Security::remove_XSS to the end of prepareMessage(), after
MarkdownExtra::defaultTransform. HTMLPurifier is already configured with
no javascript scheme, so running it last strips the payload while keeping
normal links. Check other chat display paths and the 1.11.x branch for
the same ordering.

Credit
Muhammad Saad Sabir.

Severity
High
8.7/ 10

CVSS v3 base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

CVE ID
No known CVE

Weaknesses
WeaknessCWE-79

Credits
@msaadsbr msaadsbr
Reporter
_____________________________________________________________________

Authenticated arbitrary resource file read via mismatched
`resourceFileId` (< 3.0.0)

Moderate	ywarnier published GHSA-2prx-vqcv-mv68

Package
 chamilo/chamilo-lms (Composer)

Affected versions
>= 2.0.0, <= 2.0.3

Patched versions
3.0.0


Description

Summary
Chamilo LMS 2.x contains a broken object-level authorization
vulnerability in its resource-view endpoint. The route accepts a
resource-node UUID in the URL and an optional, independently
controlled resourceFileId query parameter:

GET /r/{tool}/{type}/{resource-node-uuid}/view?resourceFileId={resource-file-id}
Chamilo authorizes access to the resource node supplied in the path
but reads and returns the separate ResourceFile selected by
resourceFileId. It never verifies that the selected file belongs
to the authorized resource node and does not apply the existing
ResourceFileVoter to that file.

A low-privileged user can therefore use a resource node they are
allowed to view as an authorization decoy while selecting a private
file belonging to another user, course, message, assignment, or
tenant.

Impact
Any authenticated low-privileged user who can view at least one
resource node can use that node to retrieve other users' resource
files by numeric ID. Potentially exposed files include:

private course documents;
personal files;
private-message attachments;
student assignment submissions and corrections;
forum and portfolio attachments;
learning-path and other shared resource assets.
The vulnerability crosses user and course authorization boundaries
and may also cross access-URL/tenant boundaries where multiple
access URLs are configured.

Affected versions
The vulnerable resourceFileId logic is present in stable v2.0.0,
v2.0.1, v2.0.2, and v2.0.3 and remains present in master at
commit 348978f3e0dd57b23190bdda174be3bd1c87bcd4 (2026-07-13).

Chamilo 1.11.x was not assessed as affected by this specific
Symfony resource handler.

Recommended remediation
After resolving resourceFileId, require the selected file's resource
node to be exactly the resource node identified by the route.
Return 404 on a mismatch.

Apply ResourceFileVoter::DOWNLOAD/VIEW directly to the selected
ResourceFile.

Validate that an access-URL-specific variant belongs to the current
access URL/tenant.

Change the individual ResourceFile API operation to object-level
authorization:
new Get(security: "is_granted('VIEW', object)")

Avoid exposing authorization differences through detailed error
messages.

Suggested regression tests should verify that:

an authorized user can view a file belonging to the path resource node;
a file ID belonging to a different node is rejected;
a student cannot fetch another user's ResourceFile item through the API;
variants for another access URL are rejected;
administrators retain intended access.

Severity
Moderate
6.5/ 10

CVSS v3 base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

CVE ID
No known CVE

Weaknesses
WeaknessCWE-639
WeaknessCWE-863

Credits
@l0h1nth l0h1nth
Reporter
_____________________________________________________________________

IDOR in certificates (< 1.11.42)
Moderate	ywarnier published GHSA-r6vc-jgrj-jqp6

Package
 chamilo/chamilo-lms (Composer)

Affected versions
1.11.38

Patched versions
1.11.42


Description

Summary
Possibly related to CVE‑2026‑33141, logged in users (even learners)
can iterate over IDs and discover personal details of recipients of
all certificates.

Details
/certificates/index.php should not use simple IDs which anyone can
access. Access should be restricted to the owner of the certificate
(or admin users). Or better, the id parameter should be a UUID style
non‑guessable value, which would allow anonymous verification of the
certificate.

Impact
Under privacy regulations (e.g. GDPR), exposing personal data in a
way that allows large‑scale collection without consent or strong
justification is generally considered a data breach or at least a
design flaw.

Severity
Moderate
4.3/ 10

CVSS v3 base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CVE ID
No known CVE

Weaknesses
No CWEs

Credits
@PuzzledUser PuzzledUser
Reporter
_____________________________________________________________________

MessageAttachment API item GET is gated on ROLE_USER only, with no
message-ownership voter (< 3.0.0)

Moderate	ywarnier published GHSA-jf75-vp35-w4mg

Package
 chamilo/chamilo-lms (Composer)

Affected versions
2.0

Patched versions
3.0.0

Description
Chamilo 2.0 exposes message attachments as an API Platform resource,
and the item GET is protected by is_granted('ROLE_USER') and nothing
else. There is no object voter, no custom state provider, and no
query extension tying the attachment back to the message it belongs
to, so any logged-in user can call
GET /api/message_attachments/{id} for any id and read that attachment's
serialized fields no matter who sent or received the underlying
private message.

The parent Message resource does enforce this. Its item GET is
is_granted('VIEW', object) (src/CoreBundle/Entity/Message.php:41-43),
backed by MessageVoter, which grants VIEW only to the sender or a
receiver (src/CoreBundle/Security/Authorization/Voter/MessageVoter.php:71-76).
The attachment that hangs off that message omits the check.

src/CoreBundle/Entity/MessageAttachment.php:16-23:

#[ApiResource(
    types: ['http://schema.org/MediaObject'],
    operations: [
        new Get(security: "is_granted('ROLE_USER')"),
    ],
    normalizationContext: ['groups' => ['message:read']],
)]

The primary key is an auto-increment
IDENTITY integer (MessageAttachment.php:29-32), so ids are
small and walkable. Under message:read the response carries
the attachment comment (MessageAttachment.php:37-39) plus
contentUrl and downloadUrl, inherited from AbstractResource.php:28-36.
ResourceNormalizer builds those URLs from the resource node path,
so the URL string itself gives up the filename and the node id.
The ownership chain is already available: MessageAttachment has
a required ManyToOne back to Message (MessageAttachment.php:44-46).
The resource never uses it.

Impact
Any authenticated user can walk attachment ids and read other users'
private-message attachment metadata, including the comment text,
the filename and the node id. They do not need to have been party
to the message.

The file contents are not reachable this way, and I want to be clear
about that boundary. downloadUrl points at the
chamilo_core_resource_download route (src/CoreBundle/Controller/ResourceController.php:282-299),
which calls denyAccessUnlessGranted(ResourceNodeVoter::VIEW, ...)
before streaming anything, and
ResourceNodeVoter (src/CoreBundle/Security/Authorization/Voter/ResourceNodeVoter.php:98-182)
grants VIEW on a non-public node only to the creator or to a
principal with a matching resource link. An unrelated caller who
lifts the URL out of the API gets denied there, so what I can confirm
is a metadata leak. It is still worth closing, because the comment
field can hold sensitive text and the download voter is currently
the only control between the enumeration and the bytes.

Suggested fix
Bind the attachment operation to the parent message's ownership the
way Message already does, for example
new Get(security: "is_granted('VIEW', object.getMessage())"), so a
non-party is denied by the voter you already have. Worth confirming
the expression can call the getter in your API Platform version;
if it cannot, a small MessageAttachmentVoter delegating to
MessageVoter on getMessage() has the same effect. A custom state
provider that loads the attachment scoped to the caller and
returns 404 otherwise would also work.

One related surface I checked
src/CoreBundle/Entity/ResourceFile.php:41 and :107 also gate on
ROLE_USER alone. I chased that at HEAD because if it were unscoped
it would turn this into a cross-user read of the file contents, and
it is not: ResourceFile does not extend AbstractResource so it has
no contentUrl or downloadUrl, the Vich $file property carries no
serialization group (ResourceFile.php:158-166), and both routes that
stream bytes (ResourceController.php:153-172 and :282-302) enforce
the node voter. It does mean filenames, MIME types and sizes are
enumerable installation wide, which looks worth a look on its own
terms, and I am not packaging it here.

Source-verified at HEAD e38ed36 (2026-07-20). I did not stand up a
running Chamilo 2.0 instance, so the responses are read off the
resource definitions and serialization groups rather than captured
at runtime. I searched the repository's published advisories,
issues and pull requests and found nothing covering the
message-attachment API or this metadata IDOR; the existing Chamilo
authorization advisories are on other
surfaces (lp_ajax_save_objectives.php, /api/course_rel_users, private notes).

I used AI assistance while investigating, but I traced the
resource definitions, the serialization groups, the enforcing
sibling voter and the download-route voter at HEAD myself.
GitHub handle arpitjain099 for crediting, and I am happy to
help with the fix.

Severity
Moderate
4.3/ 10

CVSS v3 base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CVE ID
No known CVE

Weaknesses
WeaknessCWE-284
WeaknessCWE-639

Credits
@arpitjain099 arpitjain099
Reporter
=========================================================
+ CERT-RENATER        |    tel : 01-53-94-20-44         +
+ 23/25 Rue Daviel    |    fax : 01-53-94-20-41         +
+ 75013 Paris         |   email:cert@support.renater.fr +
=========================================================




