CVE-2024-48899
NoneMoodle IDOR when accessing list of course badges
CVSS
—
EPSS
0.3%
Published
Nov 20, 2024
CISA due date
—
Cloudanix analysis
Users could see badge information from courses they were not supposed to access, potentially revealing details about classes or achievements meant to stay private.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits an authorization bypass in Moodle, allowing authenticated users to retrieve lists of course badges for courses they lack access to due to missing access control checks on badge listing endpoints.
Why it matters to the business
Attackers or unauthorized insiders can view sensitive course badge information, potentially exposing details about course participation, achievements, or internal structures that should remain restricted, leading to privacy leaks and compliance risks without requiring elevated privileges.
How an attack unfolds
An attacker with a valid Moodle account sends crafted requests to the badge listing functionality, bypassing intended course access restrictions to enumerate badges across unauthorized courses.
How to fix it
Upgrade Moodle to the fixed commit d7e3bea9fa95ff686b370969cc1bcc3fca0919bf or apply the latest patched release that enforces proper access controls on course badge retrieval.
How to confirm the fix worked
After patching, confirm that requests for badge lists on unauthorized courses return access denied responses; review code changes around badge access checks and test with multiple user roles.
Typical attack path
- Obtain a valid user account in the Moodle instance
- Identify the badge listing API or web endpoint handling course badges
- Craft and send requests specifying target course identifiers without proper enrollment or access
- Receive unauthorized badge lists due to absent server-side authorization checks
How to detect it
Examine web server and Moodle access logs for repeated or anomalous requests to badge listing endpoints from users without corresponding course enrollment records; look for patterns of cross-course badge enumeration.
What your security team should do
- Apply the Moodle patch immediately given the authorization nature of the flaw
- Audit logs for unusual badge list queries from non-enrolled users
- Review and tighten course access policies as a defense-in-depth measure
- Monitor for similar authorization issues in other Moodle plugins or features
The record
A vulnerability was found in Moodle. Additional checks are required to ensure users can only fetch the list of course badges for courses that they are intended to have access to.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 4.4.0-beta | 4.4.3 |
| Bitnami | moodle | 4.4.0 | 4.4.4 |
| 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.4.0-beta | 4.4.3 |
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