CVE-2024-34001
High · 8.4CVSS
8.4
EPSS
0.4%
Published
May 31, 2024
CISA due date
—
Cloudanix analysis
A flaw could let someone trick a system administrator into making unwanted changes to settings without their knowledge.
- Exploitation
- Requires User Interaction
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- CSRF
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Missing anti-CSRF token on actions in the admin preset tool allows forged requests to execute privileged operations when an authenticated administrator visits an attacker-controlled page.
Why it matters to the business
Successful exploitation can result in unauthorized modification of platform configuration and data, leading to service disruption, data integrity loss, or full compromise of the learning management system with high urgency due to the 8.4 CVSS rating and public disclosure since May 2024.
How an attack unfolds
An attacker prepares a web page or link containing a crafted request targeting the admin preset tool, then tricks a logged-in administrator into visiting it; because no token validates the request origin, the server performs the action with the administrator's privileges.
How to fix it
Upgrade moodle/moodle to commit e8d03fdae4ec30a40cdc535c8e9e95f30604ec10 or later; verify the presence of CSRF tokens on all admin preset actions after patching.
How to confirm the fix worked
Confirm the patch commit is present in the deployed codebase, re-test the affected endpoints for anti-CSRF token enforcement, and review administrator activity logs for unexpected preset changes post-deployment.
Typical attack path
- Identify the admin preset tool endpoints lacking CSRF tokens
- Craft a malicious HTML form or link that triggers a desired preset action
- Host the payload on an attacker-controlled site or deliver via phishing
- Induce an authenticated administrator to visit the payload while logged in
- Execute unauthorized administrative changes or data exfiltration
How to detect it
Monitor web server and application logs for POST or GET requests to admin preset endpoints that lack expected referrers or originate from external domains; correlate with administrator session activity for anomalies.
What your security team should do
- Apply the fixed commit e8d03fdae4ec30a40cdc535c8e9e95f30604ec10 immediately given the high CVSS and public availability
- Enable additional logging of all admin preset tool actions for anomaly detection
- Conduct targeted user awareness training for administrators on phishing risks
- Review and enforce least-privilege access for administrative accounts
The record
Actions in the admin preset tool did not include the necessary token to prevent a CSRF risk.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 0 | 4.1.10 |
| Packagist | moodle/moodle | 4.2.0 | 4.2.7 |
| Packagist | moodle/moodle | 4.3.0 | 4.3.4 |
| Bitnami | moodle | 0 | 4.1.10 |
| Ubuntu:16.04:LTS | moodle | 0 | No fix |
| Ubuntu:18.04:LTS | moodle | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | moodle | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | moodle | 0 | No fix |
| packagist | moodle/moodle | 4.2.0 | 4.2.7 |
| packagist | moodle/moodle | 4.3.0 | 4.3.4 |
Related vulnerabilities
- GHSA-ggxq-2mg9-8966 Moodle has a Remote Code Execution risk via file restore Also affects moodle/moodle
- GHSA-cg8j-5cr2-568q Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits Also affects moodle/moodle
- CVE-2026-26047 A denial-of-service vulnerability was identified in Moodle’s TeX formula editor. Also affects moodle/moodle
- CVE-2026-26045 A flaw was identified in Moodle’s backup restore functionality where specially crafted… Also affects moodle/moodle
- GHSA-5cx4-w4fh-fr57 Moodle Affected by Improper Restriction of Excessive Authentication Attempts Also affects moodle/moodle
- GHSA-8jrv-wx83-w3xj Moodle Inserts Sensitive Information Into Sent Data Also affects moodle/moodle
- GHSA-hcm6-q6pc-xfhm Moodle has an authorization logic flaw Also affects moodle/moodle
- GHSA-qv78-6gpp-hm68 Moodle Open Redirect vulnerability Also affects moodle/moodle