POC详情: 82269d3c20a913e71c6c1233994c2f1be39dcd58

来源
关联漏洞
标题: WinRAR 安全漏洞 (CVE-2023-38831)
描述:WinRAR是一款文件压缩器。该产品支持RAR、ZIP等格式文件的压缩和解压等。 RARLabs WinRAR 6.23之前版本存在安全漏洞。攻击者利用该漏洞可以执行任意代码。
介绍
# CVE-2023-38831 Winrar Exploit Generator (POC)
This is a basic proof of concept for the CVE-2023-3883 exploit targeting WinRAR up to 6.22. Modified some existing internet-sourced POCs by introducing greater dynamism and incorporated additional try-except blocks within the code.

Description from CVE.mitre.org:
> RARLabs 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 August 2023.


## Usage
Using a bait file include running him:
```
python .\CVE-2023-38831-WinRar-Exploit.py -b XXX_YYYYY_RESUME_2023.pdf -p commands.cmd -o POC.rar
```
Using an exe file without running him:
```
python .\CVE-2023-38831-WinRar-Exploit.py -b bait_for_exe_file.pdf -p putty.exe -o POC.rar
```

## Screenshot

![screenshot](./screenshot.png)

## Reference
- https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/
- https://b1tg.github.io/post/cve-2023-38831-winrar-analysis/
- https://github.com/b1tg/CVE-2023-38831-winrar-exploit
文件快照

[4.0K] /data/pocs/82269d3c20a913e71c6c1233994c2f1be39dcd58 ├── [ 0] bait_for_exe_file.pdf ├── [ 8] commands.bat ├── [4.5K] CVE-2023-38831-WinRar-Exploit.py ├── [1.3K] README.md ├── [ 97K] screenshot.png └── [ 13K] XXX_YYYYY_RESUME_2023.pdf 0 directories, 6 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。