All vulnerabilities

Servers and applications

GHSA-rrjh-7f5h-8w96

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

Severity
High 8.7
Published
17 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
17 Nov 2026
Fixed in
3.0.0
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

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) becomes a live 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).

From chamilo/chamilo-lms's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Chamilo LMSServers and applications · github:chamilo/chamilo-lms
  • From 2.0 before 3.0.0

About Chamilo LMS

Free Software Learning Management System

From Wikidata, CC0 1.0.
Share of websites with a known CMS
0.6%W3Techs, Nov 2026
GitHub stars
1,024GitHub, 15 Nov 2026
Forks
567GitHub, 15 Nov 2026
Latest release
v3.0.2GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
License
GPL-3.0GitHub
Written in
PHP, JavaScriptWikidata
First released
18 Jan 2010Wikidata
First published on GitHub
29 Mar 2013GitHub

References