
CVE-2023-38146("ThemeBleed")のProof-of-Concept
Usage: ThemeBleed.exe <command>
Commands:
server - Runs the server
make_theme <host> <output path> - Generates a .theme file referencing the specified host
make_themepack <host> <output_path> - Generates a .themepack file referencing the specified host
data 内のバイナリは、PoC がターゲットに返す3つのファイルに対応しています。
stage_1 - PACKTHEM_VERSION が999に設定された msstyles ファイル。stage_2 - 署名チェックを通過するための、改変されていない有効な msstyles ファイル。stage_3 - 読み込まれて実行されるDLL。提供されているサンプルは単に calc.exe を起動します。独自のペイロードを作成するには、VerifyThemeVersion という名前のエクスポートにコードを記述したDLLを作成し、新しく作成したDLLで stage_3 を置き換えてください。