POC详情: 6e3aec3f532e76faf00819054f3b50a1f8b2d605

来源
关联漏洞
标题: Cisco AnyConnect Secure Mobility Client for Windows 代码问题漏洞 (CVE-2020-3433)
描述:Cisco AnyConnect Secure Mobility Client for Windows是美国思科(Cisco)公司的一款基于Windows平台的可通过任何设备安全访问网络和应用的安全移动客户端。 Cisco AnyConnect Secure Mobility Client for Windows 4.9.00086之前版本中的IPC通道存在代码问题漏洞,该漏洞源于程序充分验证所加载的资源。本地攻击者可通过发送特制的IPC消息利用该漏洞以SYSTEM权限执行任意代码。
描述
PoCs and technical analysis of three vulnerabilities found on Cisco AnyConnect for Windows: CVE-2020-3433, CVE-2020-3434 and CVE-2020-3435 
介绍
# PoCs for CVE-2020-3433, CVE-2020-3434, and CVE-2020-3435



PoCs and technical details for the three vulnerabilities found on Cisco AnyConnect Secure Mobility Client for Windows in May 2020:

- CVE-2020-3433 - High (CVSS Score 7.8) - a local privilege escalation
- CVE-2020-3434 - Medium (CVSS Score 5.5) - a Denial of Service
- CVE-2020-3435 - Medium (CVSS Score 5.5) - an "Always-On" bypass (VPN profile modification)


Technical details are available in this repository: [Details.md](Details.md)



## CVE-2020-3433: Privilege escalation (AnyConnect < 4.9.00086)

### Description
> A vulnerability in the interprocess communication (IPC) channel of Cisco AnyConnect Secure Mobility Client for Windows could allow an authenticated, local attacker to perform a DLL hijacking attack. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system.
> 
> The vulnerability is due to insufficient validation of resources that are loaded by the application at run time. An attacker could exploit this vulnerability by sending a crafted IPC message to the AnyConnect process. A successful exploit could allow the attacker to execute arbitrary code on the affected machine with SYSTEM privileges. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system.

[Cisco Advisory](https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-anyconnect-dll-F26WwJW)

### Exploit
Run `CVE-2020-3433-privesc.exe`. A SYSTEM shell will spawn

![CVE-2020-3433-PoC](images/CVE-2020-3433_PoC.png)



## CVE-2020-3434: Denial of Service (AnyConnect < 4.9.01095)

### Description
> A vulnerability in the interprocess communication (IPC) channel of Cisco AnyConnect Secure Mobility Client for Windows could allow an authenticated, local attacker to cause a denial of service (DoS)condition on an affected device. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system.
>
> The vulnerability is due to insufficient validation of user-supplied input. An attacker could exploit this vulnerability by sending a crafted IPC message to the AnyConnect process on an affected device. A successful exploit could allow the attacker to stop the AnyConnect process, causing a DoS condition on the device. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system.

[Cisco Advisory](https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-anyconnect-dos-feXq4tAV)

### Exploit
Run `CVE-2020-3434-DoS.exe`. AnyConnect's VPN Agent service will stop.



![CVE-2020-34343-PoC](images/CVE-2020-3434_PoC.png)



## CVE-2020-3435: VPN profile modification

### Description
> A vulnerability in the interprocess communication (IPC) channel of Cisco AnyConnect Secure Mobility Client for Windows could allow an authenticated, local attacker to overwrite VPN profiles on an affected device. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system.
>
> The vulnerability is due to insufficient validation of user-supplied input. An attacker could exploit this vulnerability by sending a crafted IPC message to the AnyConnect process on an affected device. A successful exploit could allow the attacker to modify VPN profile files. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system.

[Cisco Advisory](https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-anyconnect-profile-7u3PERKF)

### Exploit
Run `CVE-2020-3435-profile-modification.exe bypass "C:\path\to\profile\to\overwrite.xml"`. The VPN profile will be overwritten (by a profile embedded in the PoC). A backup of the profile will be written in the current folder (with current date and time).

OR 

Run `CVE-2020-3435-profile-modification.exe restore "C:\path\to\profile.xml"`. `C:\path\to\profile.xml` will be restored (`C:\path\to\profile.xml will be copied` to `C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\profile.xml`)



![CVE-2020-3435-PoC](images/CVE-2020-3435_PoC.png)




## Additional information
- These vulnerabilities were found after the analysis of the [CVE-2020-3153](https://www.securify.nl/advisory/SFY20200419/cisco-anyconnect-elevation-of-privileges-due-to-insecure-handling-of-path-names.html) vulnerability (my PoC and my notes are available here: [link](https://github.com/goichot/CVE-2020-3153))
- The outline of the C# code and the DLL source code are based on Google Project Zero PoC for CVE-2015-6305: [link](https://bugs.chromium.org/p/project-zero/issues/detail?id=460)
- I have not tested AnyConnect 64-bit versions. Path to `vpndownloader.exe` should probably be modified. 



Antoine Goichot - September 2020 

[GitHub](https://github.com/goichot) | [Twitter](https://twitter.com/AntoineGoichot) | [LinkedIn](https://www.linkedin.com/in/antoinegoichot)






文件快照

[4.0K] /data/pocs/6e3aec3f532e76faf00819054f3b50a1f8b2d605 ├── [4.0K] bin │   ├── [374K] CVE-2020-3433-privesc.exe │   ├── [7.5K] CVE-2020-3434-DoS.exe │   └── [ 26K] CVE-2020-3435-profile-modification.exe ├── [2.2K] CVE-2020-3433-3434-3435.sln ├── [4.0K] CVE-2020-3433-privesc │   ├── [ 187] App.config │   ├── [3.2K] CVE-2020-3433-privesc.csproj │   ├── [ 96K] Program.cs │   └── [4.0K] Properties │   └── [1.4K] AssemblyInfo.cs ├── [4.0K] CVE-2020-3434-DoS │   ├── [ 187] App.config │   ├── [2.3K] CVE-2020-3434-DoS.csproj │   ├── [4.2K] Program.cs │   └── [4.0K] Properties │   └── [1.4K] AssemblyInfo.cs ├── [4.0K] CVE-2020-3435-profile-modification │   ├── [ 187] App.config │   ├── [2.3K] CVE-2020-3435-profile-modification.csproj │   ├── [ 12K] Program.cs │   └── [4.0K] Properties │   └── [1.4K] AssemblyInfo.cs ├── [ 25K] Details.md ├── [4.0K] images │   ├── [ 91K] autoupdate.png │   ├── [ 89K] CVE-2020-3433.png │   ├── [ 42K] CVE-2020-3433_PoC.png │   ├── [ 34K] CVE-2020-3434_PoC.png │   ├── [ 48K] CVE-2020-3435.png │   ├── [ 41K] CVE-2020-3435_PoC.png │   └── [ 89K] profile_download.png └── [4.9K] README.md 8 directories, 25 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。