kcve.ai취약점 정보 · 내 자산 확인

CVE-2021-21234 Directory Traversal

디렉토리 횡단

설명

spring-boot-actuator-logview in a library that adds a simple logfile viewer as spring boot actuator endpoint. It is maven package "eu.hinsch:spring-boot-actuator-logview". In spring-boot-actuator-logview before version 0.2.13 there is a directory traversal vulnerability. The nature of this library is to expose a log file directory via admin (spring boot actuator) HTTP endpoints. Both the filename to view and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was checked to prevent directory traversal exploits (so that `filename=../somefile` would not work), the base folder parameter was not sufficiently checked, so that `filename=somefile&base=../` could access a file outside the logging base directory). The vulnerability has been patched in release 0.2.13. Any users of 0.2.12 should be able to update without any issues as there are no other changes in that release. There is no workaround to fix the vulnerability other than updating or removing the dependency. However, removing read access of the user the application is run with to any directory not required for running the application can limit the impact. Additionally, access to the logview endpoint can be limited by deploying the application behind a reverse proxy.

스프링 부트 액츄에이터 엔드포인트로 간단한 로그파일 뷰어를 추가하는 라이브러리의 spring-boot-actuator-logview. maven 패키지 "eu.hinsch:spring-boot-actuator-logview"입니다. 버전 0.2.13 이전 버전인 spring-boot-actuator-logview에는 디렉토리 트래버스 취약점이 있습니다. 이 라이브러리의 특성은 admin (spring boot actuator) HTTP 엔드포인트를 통해 로그 파일 디렉토리를 노출하는 것입니다. 볼 파일 이름과 기본 폴더(로그인 폴더 루트에 대한)는 모두 요청 매개 변수를 통해 지정할 수 있습니다. 파일 이름 매개 변수가 디렉토리 탐색 악용을 방지하기 위해 검사되었지만 (`filename=../somefile`이 작동하지 않도록) 기본 폴더 매개 변수가 충분히 검사되지 않았기 때문에 `filename=somefile&base=../`가 로깅 기본 디렉토리 외부의 파일에 액세스 할 수 있습니다. 이 취약점은 릴리스 0.2.13에서 패치되었습니다. 0.2.12의 사용자는 해당 릴리스에 다른 변경 사항이 없으므로 문제없이 업데이트 할 수 있어야합니다. 종속성을 업데이트하거나 제거하는 것 외에 취약점을 해결할 수 있는 방법이 없습니다. 그러나 애플리케이션이 실행될 때 애플리케이션 실행에 필요하지 않은 디렉토리에 대한 사용자의 읽기 액세스 제거는 영향을 제한할 수 있습니다. 또한 역방향 프록시 뒤에 애플리케이션을 배포하면 logview 엔드포인트에 대한 액세스가 제한될 수 있습니다.

영향 받는 제품 제품 1개

  • lukashinsch

    spring-boot-actuator-logview

    해결 버전 있음

    영향 받는 버전

    • 0.2.13 미만

    해결 버전

    • 0.2.13 이상

참고 자료 4건

‹ 목록

점검 지원 범위 문의

도입 문의