VDB
EN
HIGH 7.2

GHSA-wf6j-gr27-g7ch

GeoServer has a Server-Side Template Injection (SSTI) vulnerability in processing FreeMarker templates

빠른 조치

GHSA-wf6j-gr27-g7ch — org.geoserver:gs-main: 아래 명령으로 수정 버전으로 올리세요.

# pom.xml: bump <version>2.27.0</version> for org.geoserver:gs-main

상세

### Summary A server-side template injection (SSTI) vulnerability exist that allows an authenticated administrator to upload FreeMarker templates containing malicious content that can execute OS commands and read from or write to arbitrary files on the server. These FreeMarker templates are used in a plain GeoServer instance (no extension or community modules) for WMS GetFeatureInfo HTML and JSON and WMS GetMap KML and GeoRSS output formats.

### Details The org.geoserver.template.TemplateUtils.getSafeConfiguration() method attempts to block access to the class freemarker.template.utility.Execute but it is still possible to gain access to it and other sensitive functionality by chaining a specific sequence of method calls.

### Impact This vulnerability can lead to executing arbitrary code and reading and writing arbitrary files.

### Resolution GeoServer 2.27.0 addresses this vulnerability with several new application properties:

* ``GEOSERVER_FREEMARKER_BLOCK_LIST`` * ``GEOSERVER_FREEMARKER_ALLOW_LIST`` * ``GEOSERVER_FREEMARKER_API_EXPOSED``

These application properties default to restricting the objects template authors can access, and limit access to "getter" methods used to access object properties.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

Maven / org.geoserver:gs-main
최초 영향 버전: 0 수정 버전: 2.27.0
수정 # pom.xml: bump <version>2.27.0</version> for org.geoserver:gs-main
Maven / org.geoserver:gs-wms
최초 영향 버전: 0 수정 버전: 2.27.0
수정 # pom.xml: bump <version>2.27.0</version> for org.geoserver:gs-wms
Maven / org.geoserver.web:gs-web-app
최초 영향 버전: 0 수정 버전: 2.27.0
수정 # pom.xml: bump <version>2.27.0</version> for org.geoserver.web:gs-web-app

참고