Skip to main content

CVE-2024-3931: Cross Site Scripting in Totara LMS

Medium
VulnerabilityCVE-2024-3931cvecve-2024-3931
Published: Thu Apr 18 2024 (04/18/2024, 00:00:04 UTC)
Source: CVE Database V5
Vendor/Project: Totara
Product: LMS

Description

A vulnerability was found in Totara LMS up to 18.7. It has been rated as problematic. Affected by this issue is some unknown functionality of the file admin/roles/check.php of the component User Selector. The manipulation of the argument ID Number leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 13.46, 14.38, 15.33, 16.27, 17.21 and 18.8 is able to address this issue. It is recommended to upgrade the affected component.

AI-Powered Analysis

AILast updated: 07/11/2025, 00:04:14 UTC

Technical Analysis

CVE-2024-3931 is a cross-site scripting (XSS) vulnerability identified in Totara LMS, a widely used learning management system. The vulnerability affects versions up to 18.7 and is located in the admin/roles/check.php file within the User Selector component. Specifically, the issue arises from improper sanitization of the 'ID Number' argument, which can be manipulated by an attacker to inject malicious scripts. This vulnerability can be exploited remotely without requiring authentication, although user interaction is needed to trigger the malicious script execution. The CVSS 4.0 base score is 5.1, indicating a medium severity level. The attack vector is network-based with low attack complexity and no privileges required, but it does require user interaction. The impact primarily affects the integrity and confidentiality of user sessions by enabling script injection, which could lead to session hijacking, defacement, or redirection to malicious sites. The vulnerability does not affect availability directly. Totara LMS versions 13.0 through 18.7 are vulnerable, and upgrading to versions 13.46, 14.38, 15.33, 16.27, 17.21, or 18.8 mitigates the issue. Although no known exploits are currently reported in the wild, the public disclosure of the exploit increases the risk of exploitation. Organizations using affected versions should prioritize patching to prevent potential attacks leveraging this XSS flaw.

Potential Impact

For European organizations, the impact of this vulnerability can be significant, especially for educational institutions, corporate training departments, and government agencies that rely on Totara LMS for e-learning and training. Successful exploitation could allow attackers to execute arbitrary scripts in the context of authenticated users, potentially leading to theft of session cookies, unauthorized actions on behalf of users, or delivery of malware. This could compromise sensitive personal data, intellectual property, and organizational credentials. Given the remote exploitability and lack of required privileges, attackers could target a broad range of users, increasing the risk of widespread compromise. The medium severity rating suggests moderate risk, but the potential for lateral movement or further exploitation in a networked environment could amplify the consequences. Disruption of LMS services or loss of trust in e-learning platforms could also indirectly affect organizational operations and reputation.

Mitigation Recommendations

Beyond the generic advice of upgrading to patched versions, European organizations should implement a multi-layered defense strategy. First, immediately apply the recommended Totara LMS updates to versions 13.46, 14.38, 15.33, 16.27, 17.21, or 18.8 to remediate the vulnerability. Second, conduct a thorough review of user input handling and ensure robust input validation and output encoding are enforced throughout the LMS, particularly in custom plugins or integrations. Third, deploy web application firewalls (WAFs) with rules tuned to detect and block XSS attack patterns targeting the affected endpoints. Fourth, implement Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers accessing the LMS. Fifth, educate LMS users about phishing and suspicious links to reduce the risk of social engineering that could trigger XSS payloads. Finally, monitor LMS logs and network traffic for unusual activities indicative of exploitation attempts, and have an incident response plan ready to contain and remediate any breaches.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
VulDB
Date Reserved
2024-04-17T16:57:36.717Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68487f591b0bd07c3938aaf4

Added to database: 6/10/2025, 6:54:17 PM

Last enriched: 7/11/2025, 12:04:14 AM

Last updated: 8/17/2025, 10:43:27 PM

Views: 17

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats