支持本站 — 捐款将帮助我们持续运营

目标: 1000 元,已筹: 1000

100.0%

POC详情: 586e41d81225d3d0b7b649d320037ac036e4fb69

来源
关联漏洞
标题:Microsoft Win32k 资源管理错误漏洞 (CVE-2021-40449)
Description:Microsoft Win32k是美国微软(Microsoft)公司的一个用于Windows多用户管理的系统文件。 Microsoft Windows Win32K存在资源管理错误漏洞。以下产品和版本受到影响:Windows 10 Version 1809 for 32-bit Systems,Windows 10 Version 1809 for x64-based Systems,Windows 10 Version 1809 for ARM64-based Systems,Windows Serve
Description
Using CVE-2021-40449 to manual map kernel mode driver
介绍
# voidmap
A very simple driver manual mapper that exploits CVE-2021-40449 to get arbitrary function executed at a given address with a single given argument. It's based on an [expoit PoC CallbackHell](https://github.com/ly4k/CallbackHell). Tested on Windows 10 Pro For Workstations 1809 17763.379 (64-bit), but realistically anything around that time should be supported.

It does the following:
- Disables SMEP (and possibly SMAP) by rewriting cr4 register value
- Jumps into usermode code that manual maps the desired driver
- Enables SMEP (and possibly SMAP) again

There are two main problems with this approach:
- Manual mapped driver will be in a pool allocated by ExAllocatePool. If you want to use this for anything more serious you should consider finding a better way of memory allocation so it can't be dumped so easily.
- There is no easy way to read the original cr4 value which means that I had to hardcode the value that was there on my system. While it *should* be the same for most modern CPUs, you should still double-check that the value is correct.

Video:

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/9zHR2Lz1GrM/0.jpg)](https://www.youtube.com/watch?v=9zHR2Lz1GrM)

文件快照

[4.0K] /data/pocs/586e41d81225d3d0b7b649d320037ac036e4fb69 ├── [1.1K] LICENSE.txt ├── [1.2K] README.md └── [4.0K] voidmap ├── [4.0K] voidmap │   ├── [8.0K] caller.c │   ├── [ 721] caller.h │   ├── [1.3K] console.c │   ├── [ 552] console.h │   ├── [ 195] general.h │   ├── [3.8K] main.c │   ├── [6.3K] mapper.c │   ├── [2.1K] mapper.h │   ├── [3.0K] utils.c │   ├── [3.7K] utils.h │   ├── [7.5K] voidmap.vcxproj │   └── [1.2K] voidmap.vcxproj.filters └── [ 887] voidmap.sln 2 directories, 15 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮件到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对 POC 代码进行快照,为了长期维护,请考虑为本地 POC 付费/捐赠,感谢您的支持。