# GeoServer XSD XXE漏洞
## 概述
GeoServer中的GeoTools Schema类在使用Eclipse XSD库表示模式数据结构时,存在XML外部实体(XXE)漏洞。该问题影响了涉及gt-xsd-core解析的XML处理的曝光者,特别是当文档包含对外部XML模式的引用时。此外,这一问题也会影响gt-wfs-ng DataStore的用户,因为ENTITY_RESOLVER连接参数的使用未达到预期效果。
## 影响版本
- GeoTools: 33.1, 32.3, 31.7, 28.6.1
- GeoServer: 2.27.1, 2.26.3, 2.25.7
- GeoNetwork: 4.4.8, 4.2.13
## 细节
GeoTools库的gt-xsd-core模块在处理XML文件时未使用ParserHandler提供的EntityResolver。这意味着当处理包含对外部XML模式引用的文档时,可能会发生XXE漏洞。同样地,gt-wfs-ng DataStore功能也受到影响,其ENTITY_RESOLVER连接参数未能有效使用。
## 影响
使用受影响版本的用户在处理包含外部XML实体的文件时可能会遭受XXE攻击,这可能导致数据泄露、信息泄露、拒绝服务(DoS)或执行任意代码。
# | POC 描述 | 源链接 | 神龙链接 |
---|---|---|---|
1 | GeoServer Web Feature Service (WFS) is vulnerable to an XML External Entity (XXE) processing attack due to improper handling of XML input. This vulnerability allows attackers to perform Out-of-Band (OOB) data exfiltration and Server-Side Request Forgery (SSRF) by exploiting the GeoTools library. | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-30220.yaml | POC详情 |
标题: API / WFSHarvesterApi / Restrict to Editor by fxprunayre · Pull Request #8757 · geonetwork/core-geonetwork · GitHub -- 🔗来源链接
标签: x_refsource_MISC
神龙速读标题: Update to GeoTools 32.3 by jodygarnett · Pull Request #8803 · geonetwork/core-geonetwork · GitHub -- 🔗来源链接
标签: x_refsource_MISC
神龙速读标题: Update to GeoTools 28.6.1 by jodygarnett · Pull Request #8812 · geonetwork/core-geonetwork · GitHub -- 🔗来源链接
标签: x_refsource_MISC
神龙速读标题: XML External Entity (XXE) Processing Vulnerability in XSD schema handling · Advisory · geotools/geotools · GitHub -- 🔗来源链接
标签: x_refsource_MISC
神龙速读标题: XML External Entity (XXE) Processing Vulnerability in GeoServer WFS Service · Advisory · geoserver/geoserver · GitHub -- 🔗来源链接
标签: x_refsource_CONFIRM
神龙速读标题: XML External Entity (XXE) processing vulnerability in WFS indexing REST API endpoint · Advisory · geonetwork/core-geonetwork · GitHub -- 🔗来源链接
标签: x_refsource_MISC
神龙速读暂无评论