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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-34329 PoC — Entrust Datacard XPS Card Printer Driver 安全漏洞

Source
Associated Vulnerability
Title:Entrust Datacard XPS Card Printer Driver 安全漏洞 (CVE-2024-34329)
Description:Entrust Datacard XPS Card Printer Driver是美国Entrust公司的一个打印机驱动程序。 Entrust Datacard XPS Card Printer Driver 8.4及之前版本存在安全漏洞,该漏洞源于未经身份验证的攻击者可以借助特制的DLL有效载荷以SYSTEM身份执行任意代码。
Readme
# CVE-2024-34329
Tested Product: Datacard XPS Card Printer Driver Version: <= 8.4

Description: The application is prone to Local Privilege Escalation (LPE) vulnerability due to insecure file/folder permissions on its default installation, by which it grants the rights for everyone for full control over the path: C:\ProgramData\Datacard\XPS Card Printer\Service. Files and folders in the path "C:\ProgramData\Datacard" can be modified by unprivileged users, malicious processes and/or threat actors. Once an admin installs XPS Card Printer, which runs under SYSTEM context, it will invoke the DEVOBJ.dll or CFGMGR32.dll in the directory "C:\ProgramData\Datacard\XPS Card Printer\Service", where a low privileged user can already place a malicious dll upfront and which will not be checked and deleted by the installation. These dlls do not exist and therefore will give NOT FOUND by the application installer. If a malicious user places a dll named DEVOBJ.dll or CFGMGR32.dll within this directory, the setup will inadvertently execute these malicious dll when the service is trying to connect to the card printer, running them with SYSTEM privileges.

Exploit POC:

1- With a low priv user, create the directory "C:\ProgramData\Datacard\XPS Card Printer\Service" and throw a desired DLL and rename it to DEVOBJ.dll or CFGMGR32.dll

2- With an Administrator, proceed to install the driver as normal.

3- The DLL payload will be executed as SYSTEM.
File Snapshot

[4.0K] /data/pocs/c0bce16a92a49588984fdeb033cb302d141d9060 └── [1.4K] README.md 0 directories, 1 file
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.