CVE-2026-100204
Microsoft HEIF/AVIF 元数据重写路径中的释放后使用(use-after-free)
(msheif_store.dll,经由 PhotoMetadataHandler!CPhotoPropertyStore::Commit 到达)
会触发一个受攻击者影响的间接调用。本仓库演示了完整的代码
执行:被破坏的调用通过了控制流保护(Control Flow Guard),并落入一个
已注册到 CFG 的信标(beacon),该信标会释放一个证明文件并通过 cmd.exe 启动一个 URL。
注意: 被破坏的字节是通过调试器植入的,用以模拟 攻击者控制的已释放内存(这是标准的可利用性演示 做法)。此处不存在无需调试器的堆回收。
PhotoMetadataHandler 10.0.29648.1000msheif_store.dll 10.0.29640.1000)poc/crash_seed.heic trigger file (fully valid image, animated+audio container shape)
poc/crash_seed.avif byte-identical copy under the .avif extension
repro/ps_trigger.ps1 COM trigger: Initialize(RW) -> SetValue(CameraModel) -> Commit
demo/beacon.c CFG-instrumented beacon DLL source (/guard:cf)
demo/build_beacon.cmd builds beacon.dll (fixed base 0x180000000, needs VS BuildTools)
demo/fullchain.cmd runs the trigger under cdb, plants the fake object, continues
PATH 上运行 cdb.exe(WinDbg / Windows SDK Debugging Tools)build_beacon.cmd)REM 1. build the CFG-instrumented beacon
call demo\build_beacon.cmd
REM 2. run the full chain (defaults to poc\crash_seed.heic)
call demo\fullchain.cmd
REM with an explicit seed:
call demo\fullchain.cmd C:\path\to\crash_seed.heic
在存在漏洞的版本上预期结果:出现 %USERPROFILE%\Desktop\pwned.txt,并且
URL 在浏览器中打开。原始调试器日志输出到 fullchain.txt。
poc/crash_seed.heic 复制到一个工作文件夹。explorer.exe 因堆损坏而终止(0xC0000374,
事件 ID 1000,根据堆栈,出错模块为 msheif_store.dll)。资源管理器
会自动重启。说明:
crash_seed.heic 的全新副本——不要
重复使用被重写后的文件。.avif 的形式也包含在内(poc/crash_seed.avif);正是 .heic 扩展名
暴露了“详细信息”选项卡编辑器。两个文件字节完全相同
(MD5 0b8c40bfd72339aa48e189571f3f8f58)。Austin Mannchen,该漏洞的发现者。
William Ryan Hanna,PoC 构想。