目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2022-21877 PoC — Microsoft Windows Storage Spaces Controller缓冲区错误漏洞

来源
关联漏洞
标题: Microsoft Windows Storage Spaces Controller缓冲区错误漏洞 (CVE-2022-21877)
Description:Microsoft Windows Storage Spaces Controller是美国微软(Microsoft)公司的提供存储空间功能的必要驱动程序。 Microsoft Windows Storage Spaces Controller存在缓冲区错误漏洞。以下产品和版本受到影响:Windows Server 2019 (Server Core installation),Windows 10 Version 1909 for 32-bit Systems,Windows 10 Version 19
Description
a demonstration PoC for CVE-2022-21877 (storage spaces controller memory leak)
介绍
# POC CVE-2022-21877

This repository contains a POC for the CVE-2022-21877, found by [Quang Linh](https://twitter.com/linhlhq), working at [STAR Labs](https://twitter.com/starlabs_sg). This is an information leak found inside the spaceport.sys driver.

An accompying blogpost can be found at this [address](https://big5-sec.github.io/posts/an-analysis-of-cve-2022-21877/).

## Using it

To build the POC, simply run ``.\build``.

To run it, you need a pool on your machine that can get a Tier. In my tests, this means having at least two storage pools, the primordial one and one another. All of this because the primordial pool cannot have a Tier attached.

To get the necessary configuration, you can set up 3 virtuals disks on a virtual machine. These will be used automatically as the primordial pool by Microsoft. You can then reboot, add another two virtual disks. You can then create the second pool with the following command, as an administrator:

```PS1
New-StoragePool -FriendlyName Pool2 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $True)
```

Once all set, launch the POC as an administrator by providing it the "FriendlyName" of the usable pool (for example the one you just created).

## Results of this POC

This poc permits to leak uncontrolled data located past the system buffer. As explained in the blogpost, I was not able to trigger a controlled leak of a given kernel object. Here is what it looks like :

![](https://raw.githubusercontent.com/Big5-sec/cve-2022-21877/main/img/result.PNG)

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →