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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-29072 PoC — 7-Zip 缓冲区错误漏洞

Source
Associated Vulnerability
Title:7-Zip 缓冲区错误漏洞 (CVE-2022-29072)
Description:7-Zip是一个压缩软件。 7-Zip 21.07存在安全漏洞,该漏洞允许在扩展名为 .7z 的文件被拖到帮助>内容区域时进行权限升级和命令执行。这是由 7z.dll 配置错误和堆溢出引起的。该命令在7zFM.exe进程下的子进程中运行。
Description
7-Zip CVE-2022-29072 Mitigation - CHM file - This script detects if the .chm file exists and removes it.
Readme
# 7-Zip.chm-mitigiation
7-Zip Mtigation

CVE-2022-29072 

Explaination : 
https://user-images.githubusercontent.com/33525376/163654035-d40ca72a-7dbc-425f-ade2-3820cfababb2.mp4

Author CVE Founder : 
https://github.com/kagancapar/CVE-2022-29072

A vulnerability has been discovered in 7-zip, the popular archiving program. This is an active zero-day vulnerability and is characterized as allowing privilege escalation and command execution. In other words, someone with limited access to your computer would be able to gain higher-level control, usually admin access, to run commands or apps. GitHub user Kagancapar seems to have unearthed this 7-zip Windows vulnerability, and it has reference CVE-2022-29072.

7-zip is a cross-platform app, but this vulnerability is tied to Windows, as it relies on 7-zip's interactivity with the Windows help application, hh.exe. For example, the GitHub readme file for CVE-2022029072 surmises "Windows allows privilege escalation and command execution when a file with the .7z extension is dragged to the Help>Contents area."

This PowerShell Script made due to the CVE-2022-29072 of RCE and Privilege Esecalation with payload mitigation 
Removal of 7-zip.chm file , this PSH script detects if the 7-zip.chm file exsists in the Program Files directory and removes it.

This script made for mitigation , for wide network with several endpoints post this script inside startup folder and force restart all the hosts.



This script works only if the program exists in the Program Files folder.
File Snapshot

[4.0K] /data/pocs/3f092c34129074a421b20facb9942bd8ea98b9cd ├── [ 194] 7-zipchmfileremover.ps1 └── [1.5K] README.md 0 directories, 2 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.