🇰🇷 한글 설명
Apache SIS 0.7부터 1.6까지 영향을 받는 취약점으로, 데이터 파일이 다른 파일을 참조할 때 경로 제한 없이 해당 파일을 열 수 있습니다. GML, WKT, Landsat 형식에서 발생하며, 파싱 오류로 인해 민감 정보 유출 가능성은 낮습니다. 버전 1.7 이상으로 업그레이드하면 참조 경로가 같은 디렉터리 또는 지정된 디렉터리로 제한됩니다.
💡 쉬운 설명
지리 데이터 파일이 다른 파일을 참조할 때 프로그램이 경로를 검사하지 않아 임의의 로컬 파일을 열 수 있는 문제입니다. 다만 파일 형식이 맞지 않으면 읽기가 중단되어 실제 정보 유출 위험은 낮습니다.
🇺🇸 원문 (English)
This issue affects Apache SIS from version 0.7 through 1.6 inclusive. When a data file contains links to other files, Apache SIS opened these files regardless their paths. It was possible, for example, to specify a path to a local file. However, these files were always expected to be in some specific formats and the reading stops at the first parsing error, which makes this vulnerability unlikely to leak sensitive information. The impacted formats are:
* Geographic Markup Language (GML) with `xlink:href` attributes for other files in GML format.
* Well Known Text (WKT) with parameter elements for datum shift grids in NADCON, NTv2 or RGF93 formats.
* Landsat scene with paths to files for each band in the GeoTIFF format.
Users are recommended to upgrade to version 1.7, which fixes the issue by restricting the paths to the same directory as the file containing the references to other files, or to a predetermined directory for datum shift grids.
📍 영향받는 시스템
Apache SIS 0.7 ~ 1.6 (1.7 이상으로 업그레이드 권장)
⚔️ 공격 벡터
악성 GML, WKT 또는 Landsat 데이터 파일에 임의의 로컬 파일 경로를 참조하도록 작성하여 서버가 해당 파일을 열도록 유도
🛡️ 대응 방법
Apache SIS를 1.7 이상 버전으로 업그레이드
🔧 검증 코드
출력된 Implementation-Version이 1.6 이하이면 취약하며, 1.7 이상이면 패치된 버전입니다. 출력이 없으면 해당 JAR가 설치되어 있지 않은 것입니다.
find / -name '*sis*.jar' 2>/dev/null | xargs -I{} sh -c 'unzip -p {} META-INF/MANIFEST.MF 2>/dev/null | grep -i implementation-version'