
WinRAR における CVE-2023-38831 ゼロデイ脆弱性の概念実証(PoC)
このリポジトリは、WinRAR の CVE-2023-38831 ゼロデイ脆弱性に対する Proof-of-Concept に過ぎません。
RARLabs WinRAR 6.23 より前のバージョンでは、ユーザーが ZIP アーカイブ内の無害なファイルを表示しようとすると、攻撃者が任意のコードを実行できる可能性があります。この問題は、ZIP アーカイブに無害なファイル(通常の .JPG ファイルなど)と同じ名前のフォルダーが含まれ、そのフォルダーの内容(実行可能コンテンツを含む可能性があります)が無害なファイルのみにアクセスしようとした際に処理されるために発生します。これは 2023 年 4 月から 8 月にかけて実際に悪用されました。
Usage:
- poc.py [-h] scriptPath benignPath zipDirectory fname
CVE-2023-38831 Zero-Day Vulnerability in WinRAR - PoC
positional arguments:
scriptPath The Filepath of the Malicious script/batch which will be executed
benignPath The Filepath of the Benign file (recommended in '.jpg', '.png' and '.pdf')
zipDirectory The Name of the Directory which will be Created and Zipped
fname The Names of the Folder and File in the Zip (including the file extension)
options:
-h, --help show this help message and exit
python3 poc.py script.bat sample.PNG PoC sample.png を実行して、エクスプロイトを .zip として生成します

https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/