Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-21768 PoC — Microsoft Windows Ancillary Function Driver for WinSock 安全漏洞

Source
Associated Vulnerability
Title:Microsoft Windows Ancillary Function Driver for WinSock 安全漏洞 (CVE-2023-21768)
Description:Microsoft Windows Ancillary Function Driver for WinSock是美国微软(Microsoft)公司的Winsock 的辅助功能驱动程序。 Microsoft Windows Ancillary Function Driver for WinSock存在安全漏洞。攻击者利用该漏洞可以提升权限。
Readme
# CVE-2023-21768-AFD-for-WinSock-EoP-exploit

分析文章在这里:

https://mp.weixin.qq.com/s/9W9puJltbK-xto2A1duqgQ

https://www.zoemurmure.top/posts/cve_2023_21768/

根据 [Patch Tuesday -> Exploit Wednesday: Pwning Windows Ancillary Function Driver for WinSock (afd.sys) in 24 Hours](https://securityintelligence.com/posts/patch-tuesday-exploit-wednesday-pwning-windows-ancillary-function-driver-winsock/) 自己编写出来的,添加了提权后的 cleanup 代码,可成功实现提权。测试平台:Windows 11 22621.963 Windows Feature Experience Pack 1000.22638.1000.0

运行截图:

![screenshot-20230420-163108](https://user-images.githubusercontent.com/43516782/233308029-b26fa71a-2eee-4f8e-88d1-3d1852355d6b.png)


提权成功:

![screenshot-20230420-163018](https://user-images.githubusercontent.com/43516782/233307633-064f6b7e-5fe3-4e86-98d6-08b65ecbc3cd.png)
File Snapshot

[4.0K] /data/pocs/0ad5667d0267718ca0b548029a3d8c7ea326b25d ├── [4.0K] exp │   ├── [4.0K] exp │   │   ├── [ 13K] exp.cpp │   │   ├── [ 10K] exp.h │   │   ├── [6.5K] exp.vcxproj │   │   ├── [1.1K] exp.vcxproj.filters │   │   └── [ 374] exp.vcxproj.user │   └── [1.4K] exp.sln └── [ 891] README.md 2 directories, 7 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.