🇰🇷 한글 설명
BBOT의 unarchive 모듈이 특정 조건의 zip 및 7z 압축 파일 내 심볼릭 링크를 제대로 감지하지 못하는 취약점입니다. 구형 p7zip에서 생성된 DOS 속성 접두사가 포함된 경우 심볼릭 링크 검사를 우회하여 공격자가 의도한 경로에 심볼릭 링크를 생성할 수 있습니다.
💡 쉬운 설명
압축 파일 안에 가짜 연결 통로(심볼릭 링크)를 숨겨서 보안 검사를 통과하는 공격입니다. 이로 인해 공격자가 지정한 위치에 파일 연결이 만들어질 수 있지만, 실제 파일 내용까지 바로 써지지는 않습니다.
🇺🇸 원문 (English)
BBOT's unarchive module rejects archives containing symlink entries before extraction, but for zip and 7z archives it failed to detect symlinks whose listing carries a DOS-attribute prefix before the unix mode, as produced by legacy versions of p7zip. Such an archive, downloaded and extracted during a scan (for example via filedownload), bypassed the guard and caused an attacker-controlled symlink to be written into the extraction directory. The effect is limited to planting the symlink (its target is not written through), and only hosts using such a legacy p7zip build are affected; current mainline 7-Zip is not.
📍 영향받는 시스템
legacy p7zip 빌드를 사용하는 시스템 및 BBOT unarchive 모듈 사용 환경
⚔️ 공격 벡터
DOS 속성 접두사가 포함된 특수하게 제작된 zip/7z 압축 파일을 다운로드 및 추출 유도
🛡️ 대응 방법
최신 버전의 7-Zip을 사용하거나 BBOT의 unarchive 모듈을 최신 보안 패치 버전으로 업데이트
🔧 검증 코드
출력된 p7zip 버전이 매우 오래된 레거시 버전인지 확인하여 취약성 여부를 판단합니다.
p7zip -d --version 2>/dev/null | grep -i 'p7zip'