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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2019-1125 PoC — Windows Kernel Information Disclosure Vulnerability

Source
Associated Vulnerability
Title:Windows Kernel Information Disclosure Vulnerability (CVE-2019-1125)
Description:An information disclosure vulnerability exists when certain central processing units (CPU) speculatively access memory. An attacker who successfully exploited the vulnerability could read privileged data across trust boundaries. To exploit this vulnerability, an attacker would have to log on to an affected system and run a specially crafted application. The vulnerability would not allow an attacker to elevate user rights directly, but it could be used to obtain information that could be used to try to compromise the affected system further. On January 3, 2018, Microsoft released an advisory and security updates related to a newly-discovered class of hardware vulnerabilities (known as Spectre) involving speculative execution side channels that affect AMD, ARM, and Intel CPUs to varying degrees. This vulnerability, released on August 6, 2019, is a variant of the Spectre Variant 1 speculative execution side channel vulnerability and has been assigned CVE-2019-1125. Microsoft released a security update on July 9, 2019 that addresses the vulnerability through a software change that mitigates how the CPU speculatively accesses memory. Note that this vulnerability does not require a microcode update from your device OEM.
Description
This repository contains the sources and documentation for the SWAPGS attack PoC (CVE-2019-1125)
Readme
# PoC for the SWAPGS attack ([CVE-2019-1125](https://nvd.nist.gov/vuln/detail/CVE-2019-1125))

This repository holds the sources for the SWAPGS attack PoC publicly shown at Black Hat USA, 2019.

## Contents

* leakgsbkva - variant 1 (look for random values in kernel memory; limited to PE kernel image header)
* leakgsbkvat - variant 2 (extract random values from kernel memory; limited to PE kernel image header)
* whitepaper
* Black Hat USA 2019 presentation

## Prerequisites

1. Visual Studio 2015
2. Unpatched Windows x64 (7 or newer)

## Authors

* Andrei Vlad LUȚAȘ
* Dan Horea LUȚAȘ

## Additional resources

[Video Recording of presentation at Black Hat USA, 2019](https://www.youtube.com/watch?v=uBPry7jcfBE)
File Snapshot

[4.0K] /data/pocs/a63e2e3339b3d7cc0eb073f498b7ad908dc1a625 ├── [4.0K] doc │   ├── [4.6M] Bitdefender-WhitePaper-SWAPGS.pdf │   └── [3.4M] Bypassing-KPTI-Using-the-Speculative-Behavior-of-the-SWAPGS-Instruction.pdf ├── [1.4K] LICENSE ├── [ 723] README.md └── [4.0K] src ├── [4.0K] leakgsbkva │   ├── [4.0K] leakgsbkva │   │   ├── [2.1K] asmhelper.asm │   │   ├── [ 13K] leakgsbkva.c │   │   ├── [7.5K] leakgsbkva.vcxproj │   │   └── [1.1K] leakgsbkva.vcxproj.filters │   └── [1.3K] leakgsbkva.sln └── [4.0K] leakgsbkvat ├── [4.0K] leakgsbkvat │   ├── [2.0K] asmhelper.asm │   ├── [ 14K] leakgsbkvat.c │   ├── [7.5K] leakgsbkvat.vcxproj │   └── [1.1K] leakgsbkvat.vcxproj.filters └── [1.3K] leakgsbkvat.sln 6 directories, 14 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →