GeoTools 是一个开源的 Java 库,提供用于处理地理空间数据的工具。从版本 30.5 起,至版本 33.6、34.5 和 33.6(原文中 33.6 重复出现,疑为笔误)之前的版本中,当使用 PostGIS DataStore 实现执行 OGC 过滤器时,存在一个 SQL 注入漏洞,具体涉及 函数。该漏洞要求在 PostGIS 12 或更高版本环境下,且数据库表中包含字符串(String)或 JSON 类型字段。 在 PostGIS 12 及更高版本中, 函数会将 参数直接写入生成的 SQL 语句中,而未
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
| # | POC 描述 | 源链接 | 神龙链接 |
|---|---|---|---|
| 1 | GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. GeoTools FilterToSqlHelper.constructEquality writes the expected argument of the jsonArrayContains CQL function RAW into the SQL string while only escaping the JSON pointer. A single quote in the value parameter breaks out of the PostgreSQL jsonb_path_exists string literal, enabling unauthenticated SQL injection. When the PostGIS backend runs with superuser privileges, the injection escalates to operating system command execution through PostgreSQL COPY TO PROGRAM. Users are advised to upgrade to either version 2.21.4, or version 2.22.2 to resolve this issue. Users unable to upgrade should enable the PostGIS DataStore preparedStatements setting and disable encode functions as a workaround. | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-76904.yaml | POC详情 |
未找到公开 POC。
登录以生成 AI POC暂无评论