🇰🇷 한글 설명
Linux 및 macOS 환경의 ast-cli tar 압축 해제 로직에서 추출된 파일 경로에 대한 검증이 불완전하여 발생하는 경로 탐색 취약점입니다. 공격자가 악성 tar 아카이브를 통해 설치 디렉토리 외부의 임의 위치에 파일을 쓸 수 있습니다.
💡 쉬운 설명
압축 파일을 풀 때 파일이 저장될 위치를 제대로 확인하지 않아, 압축 파일 안에 숨겨진 명령어를 통해 컴퓨터의 중요한 파일을 마음대로 바꿀 수 있는 문제입니다. 해커가 정상적인 다운로드 서버를 해킹하여 가짜 파일을 심어놓을 경우 발생할 수 있습니다.
🇺🇸 원문 (English)
Incomplete validation of extracted archive entry paths in ast-cli's tar extraction logic on Linux and macOS (used when installing the Vorpal ASCA real-time engine and the SCA Resolver) would allow a malicious tar archive containing absolute or traversal path entries to write files outside the install directory. Windows builds were not affected, as the Windows extractor performs this path validation.
Exploitation required substituting the archive served at "download.checkmarx.com". An attacker able to compromise that server and replace the archive could write arbitrary, executable files to arbitrary filesystem paths via this path traversal.
Extraction now validates that each entry's destination path resolves within the working directory and rejects absolute paths.
📍 영향받는 시스템
Linux 및 macOS 환경의 ast-cli (Vorpal ASCA 엔진 및 SCA Resolver 설치 시 사용)
⚔️ 공격 벡터
download.checkmarx.com 서버를 탈취하여 경로 탐색(Path Traversal) 코드가 포함된 악성 tar 아카이브로 교체
🛡️ 대응 방법
압축 해제 시 대상 경로가 작업 디렉토리 내에 있는지 검증하고 절대 경로를 거부하도록 업데이트된 최신 버전의 ast-cli 사용
🔧 검증 코드
출력된 버전이 경로 검증 로직이 포함된 최신 패치 버전인지 확인