🇰🇷 한글 설명
Ne-Lexa php-zip 4.0.2 이하 버전의 ZIP Handler 구성 요소 내 ZipFile::extractTo 함수에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. 공격자가 entryName 인자를 조작하여 원격으로 시스템 파일에 접근하거나 임의의 경로에 파일을 생성할 수 있습니다. 현재 해당 취약점에 대한 익스플로잇이 공개된 상태입니다.
💡 쉬운 설명
압축 파일을 풀 때 파일 이름에 특수 문자를 섞어 넣으면, 원래 저장되어야 할 폴더가 아닌 컴퓨터의 중요한 시스템 폴더에 파일을 몰래 저장할 수 있는 문제입니다. 해커가 원격에서 이 방법을 사용해 시스템을 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
A vulnerability was detected in Ne-Lexa php-zip up to 4.0.2. This affects the function ZipFile::extractTo of the file src/ZipFile.php of the component ZIP Handler. Performing a manipulation of the argument entryName results in path traversal. It is possible to initiate the attack remotely. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
📍 영향받는 시스템
Ne-Lexa php-zip version 4.0.2 and below
⚔️ 공격 벡터
원격에서 조작된 entryName 인자를 포함한 압축 파일을 업로드하여 경로 탐색 공격 수행
🛡️ 대응 방법
php-zip 라이브러리를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 파일 추출 시 경로 검증 로직을 추가함
🔧 검증 코드
출력된 버전 정보가 4.0.2 이하인지 확인하여 취약 여부를 판단합니다.
composer show ne-lexa/php-zip | grep 'versions'