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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-1048 PoC — Microsoft Windows Print Spooler Components 安全漏洞

Source
Associated Vulnerability
Title:Microsoft Windows Print Spooler Components 安全漏洞 (CVE-2020-1048)
Description:Microsoft Windows Print Spooler Components是美国微软(Microsoft)公司的一个打印后台处理程序组件。 Microsoft Windows Print Spooler中存在安全漏洞。攻击者可通过登录受影响系统并运行特制的脚本或应用程序利用该漏洞获取提升的权限,执行任意代码。以下产品及版本受到影响:Microsoft Windows 10,Windows 10 1607版本,Windows 10 1709版本,Windows 10 1803版本,Windows
Description
PrintDemon (CVE-2020-1048) Privilege Escalation
Readme
# printDemon2system (CVE-2020-1048)
### PrintDemon privilege escalation to SYSTEM
PrintDemon was a logic vulnerability in the Windows Print Spooler service (**spoolsv.exe**).
The vulnerability was in the way the spooler handled print jobs to files, and when exploited allowed arbitrary writing to the file system as the SYSTEM user.

An example exploit of this vulnerability includes overwriting the *PrintConfig.dll* in the DriverStore directory, which is then loaded by **spoolsv.exe** that is running under the SYSTEM user context, when an XPS Print Job is started (as shown in this repository).

<div align="center">
  <div style="border: 1.5px solid #ccc; display: inline-block; padding: 4px;">
    <img src="/assets/printDemon2system.gif" alt="printDemon2system Exploit" width = 95% style="display: block; border: none;">
  </div>
  <p style="margin-top: 5px;"><em>Exploiting PrintDemon for Privilege Escalation (CVE-2020-1048). Compiled with VS2022 and tested on Windows 10 x64 version 1909 (build 18363.418)</em></p>
</div>

### References
* https://decoder.cloud/2019/11/13/from-arbitrary-file-overwrite-to-system/
File Snapshot

[4.0K] /data/pocs/b18c3b77076548f9afea236a41f743b0a78346b1 ├── [4.0K] assets │   └── [9.3M] printDemon2system.gif ├── [4.0K] printConfig │   ├── [1.9K] main.cpp │   ├── [6.3K] printConfig.vcxproj │   └── [ 956] printConfig.vcxproj.filters ├── [4.0K] printDemon2system │   ├── [4.2K] exploit.cpp │   ├── [ 68K] printConfigResource.h │   ├── [6.4K] printDemon2system.vcxproj │   └── [1.1K] printDemon2system.vcxproj.filters ├── [2.9K] printDemon2system.sln ├── [1.1K] README.md └── [4.0K] startXpsJob ├── [ 914] main.cpp ├── [6.3K] startXpsJob.vcxproj └── [ 956] startXpsJob.vcxproj.filters 4 directories, 13 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.