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

Goal: 1000 CNY · Raised: 1110 CNY

100%

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

Source
Associated Vulnerability
Title:WinRAR 安全漏洞 (CVE-2023-38831)
Description: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.
Description
lazy way to create CVE-2023-38831 winrar file for testing
Readme
# winrar_CVE-2023-38831_lazy_poc
lazy way to create CVE-2023-38831 winrar file for testing

Article that mentioned this vuln and the sample: https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/

version of winrar i was using is winrar 5.91.0

I took a malicious winrar file (049af32f678da5e344315ce46787e8fc https://gist.github.com/BoredHackerBlog/83cd5ca743189bf72b28ebaabe3c3df0) and removed all the included files besides the folder and main readme file

I created a new file with my command and added it to the ReadMe.txt folder and renamed the file to 'ReadMe.txt .cmd.'

<img width="1059" alt="image" src="https://user-images.githubusercontent.com/38662926/263032549-9278c687-8e5c-4418-a4e8-f98ab4c2410a.png">

<img width="790" alt="image" src="https://user-images.githubusercontent.com/38662926/263032670-b5c4e640-ab4e-4a0f-a857-ac70e41aff67.png">

<img width="967" alt="image" src="https://user-images.githubusercontent.com/38662926/263032761-3e4fa265-2782-4664-b61b-c4d6df5eb35b.png">

'ReadMe.txt .cmd' works too, so does .bat, feel free to experiment

test.rar in this repo can be used for testing. It does not have the command file included. You'll have to add that on your own.

fyi: ideally, you don't want to use modified malicious files for testing. play with this in a sandbox or a VM...
File Snapshot

[4.0K] /data/pocs/6c234f8fc592e0db1cac042e7e16c2386de7c444 ├── [1.3K] README.md └── [ 433] test.rar 0 directories, 2 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 →