Cloudanix VulnDB

CVE-2024-43427

Low · 3.7

Moodle admin presets export tool includes some secrets that should not be exported

CVSS

3.7

EPSS

0.3%

Published

Nov 11, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A configuration export feature in this learning platform can accidentally include passwords and keys when files are shared with outsiders.

Exploitation
Other
Attacker needs
Low Privilege
Complexity
Theoretical
Impact
Data Exposure
Component
Application
Class
Information Disclosure
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Sensitive secrets and keys are not excluded from exported site administration presets, allowing them to be included in the export file.

Why it matters to the business

Organizations risk accidental exposure of credentials or keys when sharing configuration presets with external parties, potentially leading to unauthorized access or compliance issues.

How an attack unfolds

An attacker convinces an administrator to generate and share a site preset export; the exported file inadvertently contains secrets that the attacker can then extract and use.

How to fix it

Upgrade moodle/moodle to the fixed commit aea9770cfc7d003a737f4899489d1e3982efe9ac; ensure presets are reviewed before sharing.

How to confirm the fix worked

Confirm the commit aea9770cfc7d003a737f4899489d1e3982efe9ac is present in the codebase and test that new preset exports exclude secrets.

Typical attack path

  1. Identify Moodle instance and persuade administrator to export site presets
  2. Receive the exported preset file
  3. Parse the file to extract any included secrets or keys
  4. Use extracted credentials for further access or attacks

How to detect it

Review exported preset files for unexpected credential patterns; monitor for unusual sharing of preset files containing configuration data.

What your security team should do

  • Apply the fix commit immediately to prevent future leaks
  • Audit any previously shared presets for accidental secret exposure
  • Implement policies requiring secret review before preset sharing

The record

A flaw was found in moodle. When creating an export of site administration presets, some sensitive secrets and keys are not being excluded from the export, which could result in them unintentionally being leaked if the presets are shared with a third party.

Affected packages

Ecosystem Package Introduced Fixed
Packagist moodle/moodle 0 4.1.12
Packagist moodle/moodle 4.2.0 4.2.9
Packagist moodle/moodle 4.3.0 4.3.6
Packagist moodle/moodle 4.4.0 4.4.2
Bitnami moodle 0 4.1.12
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.9
packagist moodle/moodle 4.3.0 4.3.6
packagist moodle/moodle 4.4.0 4.4.2

Related vulnerabilities