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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-38831 PoC — WinRAR 安全漏洞

Source
Associated Vulnerability
Title:WinRAR 安全漏洞 (CVE-2023-38831)
Description:WinRAR是一款文件压缩器。该产品支持RAR、ZIP等格式文件的压缩和解压等。 RARLabs WinRAR 6.23之前版本存在安全漏洞。攻击者利用该漏洞可以执行任意代码。
Description
CVE-2023-38831 Proof-of-concept code
Readme
# CVE-2023-38831

This is an easy to use tool that creates a CVE-2023-38831 exploit that affects all WinRAR versions prior to 6.23.

## Here's more info about the CVE-2023-38831 exploit

> RARLAB WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive. The issue occurs because a ZIP archive may include a benign file (such as an ordinary .JPG file) and also a folder that has the same name as the benign file, and the contents of the folder (which may include executable content) are processed during an attempt to access only the benign file. This was exploited in the wild in April through October 2023.

## How to build

To build the project simply run this command in the project directory.

(*MAKE SURE YOU HAVE CARGO INSTALLED BEFORE RUNNING THIS!*)

```bash
cargo build --release
```

After running this command you'll have an executable located in `target/release` called `winrar-script-exploiter`!

## How-To-Use

Simply run the executable and input all necessary valus.

Try it with some of the demo files in the *demos* folder!

## Reference

https://cve.circl.lu/cve/CVE-2023-38831

https://nvd.nist.gov/vuln/detail/CVE-2023-38831
File Snapshot

[4.0K] /data/pocs/8fce00b1989ff39818559dd06f03316b8fa49f6e ├── [ 10K] Cargo.lock ├── [ 258] Cargo.toml ├── [4.0K] demos │   ├── [ 96] demo │   ├── [ 32] demo.bat │   └── [ 66] demo.txt ├── [1.2K] LICENSE ├── [1.2K] README.md └── [4.0K] src └── [7.6K] main.rs 2 directories, 8 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.