
Prueba de concepto para CVE-2023-38146 ("ThemeBleed")
Prueba de concepto para CVE-2023-38146 ("ThemeBleed")
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
Los binarios en data corresponden a los 3 archivos devueltos al objetivo por el PoC.
stage_1 - Un archivo msstyles con PACKTHEM_VERSION establecido en 999.stage_2 - Un archivo msstyles válido y sin modificar para pasar la verificación de firma.stage_3 - La DLL que será cargada y ejecutada. El ejemplo proporcionado simplemente lanza calc.exe.Para crear tu propio payload, crea una DLL con una exportación llamada VerifyThemeVersion que contenga tu código, y reemplaza stage_3 con tu nueva DLL.