GeoServer - это сервер с открытым исходным кодом, который позволяет пользователям обмениваться и редактировать геопространственные данные. До версий 2.22.6, 2.23.6, 2.24.4 и 2.25.2 несколько параметров запроса OGC позволяют использовать Remote Code Execution (RCE) неаутентифицированными пользователями с помощью специально созданного ввода против установки по умолчанию GeoServer из-за небезопасной оценки имен свойств как выражений XPath. Библиотека GeoTools API, которую вызывает GeoServer, оценивает имена свойств/атрибутов для типов признаков таким образом, что небезопасно передает их библиотеке commons-jxpath, которая может выполнять произвольный код при оценке выражений XPath.
Эта оценка XPath предназначена для использования только сложными типами функций (например, хранилищами данных Application Schema), но неправильно применяется к простым типам функций, что делает эту уязвимость применимой к экземплярам **ALL ** GeoServer. Публичная PoC не предоставляется, но эта уязвимость была подтверждена как уязвимая с помощью запросов WFS GetFeature, WFS GetPropertyValue, WMS GetMap, WMS GetFeatureInfo, WMS GetLegendGraphic и WPS Execute. Эта уязвимость может привести к выполнению произвольного кода.
Версии 2.22.6, 2.23.6, 2.24.4 и 2.25.2 содержат патч для этой проблемы. Обходной путь существует путем удаления файла gt-complex-x.y.jar из GeoServer, где x.y является версией GeoTools (например, gt-complex-31.1.jar, если работает GeoServer 2.25.1). Это удалит уязвимый код из GeoServer, но может нарушить некоторые функциональные возможности GeoServer или помешать развертыванию GeoServer, если потребуется модуль gt-complex.
Показать оригинальное описание (EN)
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2, multiple OGC request parameters allow Remote Code Execution (RCE) by unauthenticated users through specially crafted input against a default GeoServer installation due to unsafely evaluating property names as XPath expressions. The GeoTools library API that GeoServer calls evaluates property/attribute names for feature types in a way that unsafely passes them to the commons-jxpath library which can execute arbitrary code when evaluating XPath expressions. This XPath evaluation is intended to be used only by complex feature types (i.e., Application Schema data stores) but is incorrectly being applied to simple feature types as well which makes this vulnerability apply to **ALL** GeoServer instances. No public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS GetFeature, WFS GetPropertyValue, WMS GetMap, WMS GetFeatureInfo, WMS GetLegendGraphic and WPS Execute requests. This vulnerability can lead to executing arbitrary code. Versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2 contain a patch for the issue. A workaround exists by removing the `gt-complex-x.y.jar` file from the GeoServer where `x.y` is the GeoTools version (e.g., `gt-complex-31.1.jar` if running GeoServer 2.25.1). This will remove the vulnerable code from GeoServer but may break some GeoServer functionality or prevent GeoServer from deploying if the gt-complex module is needed.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 11
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Geoserver Geoserver
cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*
|
— |
2.22.6
|
|
Geoserver Geoserver
cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*
|
2.23.0
|
2.23.6
|
|
Geoserver Geoserver
cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*
|
2.24.0
|
2.24.4
|
|
Geoserver Geoserver
cpe:2.3:a:geoserver:geoserver:*:*:*:*:*:*:*:*
|
2.25.0
|
2.25.2
|
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
|
— |
29.6
|
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
|
30.1
|
30.4
|
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:*:*:*:*:*:*:*:*
|
31.1
|
31.2
|
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:30.0:-:*:*:*:*:*:*
|
— | — |
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:30.0:rc:*:*:*:*:*:*
|
— | — |
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:31.0:-:*:*:*:*:*:*
|
— | — |
|
Geotools Geotools
cpe:2.3:a:geotools:geotools:31.0:rc:*:*:*:*:*:*
|
— | — |