🇰🇷 한글 설명
Apache Solr의 'configset upload' API에서 입력값 검증이 미흡하여 발생하는 상대 경로 탐색(Relative Path Traversal) 취약점입니다. Windows 환경에서 실행되는 Solr의 경우, 악의적으로 조작된 ZIP 파일을 통해 파일 시스템의 의도하지 않은 위치에 데이터를 쓸 수 있는 'ZipSlip' 공격에 노출될 수 있습니다.
💡 쉬운 설명
압축 파일 안에 특수하게 조작된 경로를 넣어, 원래 저장되어야 할 폴더가 아닌 컴퓨터의 중요한 시스템 폴더에 파일을 몰래 저장할 수 있는 문제입니다. 이를 통해 해커가 시스템의 중요한 파일을 덮어쓰거나 변조할 위험이 있습니다.
🇺🇸 원문 (English)
Relative Path Traversal vulnerability in Apache Solr.
Solr instances running on Windows are vulnerable to arbitrary filepath write-access, due to a lack of input-sanitation in the "configset upload" API. Commonly known as a "zipslip", maliciously constructed ZIP files can use relative filepaths to write data to unanticipated parts of the filesystem.
This issue affects Apache Solr: from 6.6 through 9.7.0.
Users are recommended to upgrade to version 9.8.0, which fixes the issue. Users unable to upgrade may also safely prevent the issue by using Solr's "Rule-Based Authentication Plugin" to restrict access to the configset upload API, so that it can only be accessed by a trusted set of administrators/users.
📍 영향받는 시스템
Apache Solr 6.6 버전부터 9.7.0 버전까지
⚔️ 공격 벡터
악의적으로 조작된 상대 경로를 포함한 ZIP 파일을 'configset upload' API를 통해 업로드
🛡️ 대응 방법
Apache Solr를 9.8.0 버전으로 업그레이드하거나, 'Rule-Based Authentication Plugin'을 사용하여 해당 API 접근 권한을 제한
🔧 검증 코드
출력된 버전 번호가 9.8.0 미만(예: 9.7.0 이하)이면 해당 취약점에 노출된 상태입니다.
curl -s http://localhost:8983/solr/admin/info/system | grep -E 'version' | sed 's/.*"version":"\([^"]*\)".*/\1/'