CVE-2024-24824 graylog2-server vulnerable to instantiation of arbitrary classes triggered by API request
API 요청에 의해 트리거된 임의의 클래스의 인스턴스화에 취약한 graylog2-server
설명
Graylog is a free and open log management platform. Starting in version 2.0.0 and prior to versions 5.1.11 and 5.2.4, arbitrary classes can be loaded and instantiated using a HTTP PUT request to the `/api/system/cluster_config/` endpoint. Graylog's cluster config system uses fully qualified class names as config keys. To validate the existence of the requested class before using them, Graylog loads the class using the class loader. If a user with the appropriate permissions performs the request, arbitrary classes with 1-arg String constructors can be instantiated. This will execute arbitrary code that is run during class instantiation. In the specific use case of `java.io.File`, the behavior of the internal web-server stack will lead to information exposure by including the entire file content in the response to the REST request. Versions 5.1.11 and 5.2.4 contain a fix for this issue.
Graylog는 무료 및 오픈 로그 관리 플랫폼입니다. 버전 2.0.0부터 버전 5.1.11 및 5.2.4 이전까지, 임의의 클래스는 HTTP PUT 요청을 사용하여 `/api/system/cluster_config/` 엔드포인트로 로드 및 인스턴스화될 수 있습니다. Graylog의 클러스터 설정 시스템은 완전한 클래스 이름을 설정 키로 사용합니다. 요청된 클래스의 존재를 사용하기 전에 검증하기 위해 Graylog는 클래스 로더를 사용하여 클래스를 로드합니다. 적절한 권한을 가진 사용자가 요청을 수행하면 1-arg String 생성자를 가진 임의의 클래스가 인스턴스화될 수 있습니다. 클래스 인스턴스화 중에 실행되는 임의의 코드를 실행합니다. `java.io.File`의 특정 사용 사례에서, 내부 웹 서버 스택의 동작은 REST 요청에 대한 응답에 전체 파일 내용을 포함시킴으로써 정보 노출을 초래할 것이다. 버전 5.1.11 및 5.2.4에는 이 문제에 대한 수정 사항이 포함되어 있습니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
Graylog2
graylog2-server
영향 받는 버전
- 2.0.0 이상 5.1.11 미만
- 5.2.0 이상 5.2.4 미만
해결 버전
- 5.1.11 이상
- 5.2.4 이상
참고 자료 4건
- github.com https://github.com/Graylog2/graylog2-server/blob/e458db8bf4f789d4d19f1b37f0263f910c8d036c/graylog2-server/src/main/java/org/graylog2/rest/resources/system/ClusterConfigResource.java#L208-L214 (새 창)
- github.com https://github.com/Graylog2/graylog2-server/commit/75ef2b8d60e7d67f859b79fe712c8ae7b2e861d8 (새 창)
- github.com https://github.com/Graylog2/graylog2-server/commit/7f8ef7fa8edf493106d5ef6f777d4da02c5194d9 (새 창)
- github.com https://github.com/Graylog2/graylog2-server/security/advisories/GHSA-p6gg-5hf4-4rgj (새 창)