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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-7250 PoC — Microsoft Windows和Macrovision SafeDisc secdrv.sys驱动程序信息泄露漏洞

Source
Associated Vulnerability
Title:Microsoft Windows和Macrovision SafeDisc secdrv.sys驱动程序信息泄露漏洞 (CVE-2018-7250)
Description:Microsoft Windows Vista等都是美国微软(Microsoft)公司发布的一系列操作系统。Macrovision SafeDisc是美国Macrovision公司的一套针对分布在光盘上的Windows应用程序和游戏的复制保护程序。secdrv.sys是其中的一个用于计算机系统与硬件或外部设备进行通信的驱动程序。 Microsoft Windows和Macrovision SafeDisc中的secdrv.sys驱动程序存在信息泄露漏洞。攻击者可利用该漏洞泄露未初始化的16位内核Paged
Description
A PoC for CVE-2018-7250
Readme
# SecDrvPoolLeak - A PoC for CVE-2018-7250

### Description
An issue was discovered in secdrv.sys as shipped in Microsoft Windows Vista, Windows 7, Windows 8, and Windows 8.1 before KB3086255, and as shipped in Macrovision SafeDisc. An uninitialized kernel pool allocation in IOCTL 0xCA002813 allows a local unprivileged attacker to leak 16 bits of uninitialized kernel PagedPool data.

The vulnerability was reported to Microsoft, and since it does not affect an up-to-date Windows machine (only versions prior to KB3086255), they will not take any action. Was tested and exploited successfully on Windows 7 x86.

Also related to [CVE-2018-7249](https://github.com/alonhr/NotSecDrv), the link contains details about both vulnerabilities.

### Screenshots
The allocated PagedPool chunk uninitialized:
![Alt text](https://github.com/alonhr/SecDrvPoolLeak/raw/master/allocation.png)

The uninitialized part copied to usermode:
![Alt text](https://github.com/alonhr/SecDrvPoolLeak/raw/master/leak.png)

### Test Enviroment
**OS:** Windows 7 Kernel Version 7600 MP (1 procs) Free x86 compatible Built by: 7600.16385.x86fre.win7_rtm.090713-1255
**VM:** 4GB RAM, 1 CPU
**Hardware:** Windows 10 Pro 64 bit, Motherboard Gigabyte Z370 HD3, 16GB RAM, Intel i5-8400 2.80GHz (6 CPUs)
File Snapshot

[4.0K] /data/pocs/853994c39ac038255ebde35bafeb21eb7f404f1a ├── [8.8K] allocation.png ├── [ 11K] leak.png ├── [1.2K] README.md ├── [4.0K] SecDrvPoolLeak │   ├── [3.4K] SecDrvPoolLeak.cpp │   ├── [7.9K] SecDrvPoolLeak.vcxproj │   ├── [1.2K] SecDrvPoolLeak.vcxproj.filters │   ├── [ 604] stdafx.cpp │   ├── [ 642] stdafx.h │   └── [ 630] targetver.h └── [1.4K] SecDrvPoolLeak.sln 1 directory, 10 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.