
CVE-2026-100204에 대한 개념 증명(PoC)으로, msheif_store.dll의 HEIF/AVIF 메타데이터 재작성 경로에서 발생하는 use-after-free 취약점이며, Windows에서 간접 호출 하이재킹과 코드 실행을 가능하게 한다.
CVE-2026-100204
Microsoft HEIF/AVIF 메타데이터 재작성 경로의 use-after-free
(msheif_store.dll, PhotoMetadataHandler!CPhotoPropertyStore::Commit을 통해 도달)가
공격자가 영향을 준 간접 호출을 유발합니다. 이 저장소는 전체 코드
실행을 시연합니다: 손상된 호출이 Control Flow Guard를 통과하여
CFG에 등록된 비콘에 도달하고, 이 비콘이 증명 파일을 드롭하고 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 아이디어.