RCE vulnerability in GeoServer (CVE-2024-36401) - detection script

CVE-2024-36401 is a critical security vulnerability affecting GeoServer, an open-source server for sharing geospatial data, and GeoTools, an open-source Java library that provides tools for geospatial data. The vulnerability, identified as a Remote Code Execution (RCE) flaw, enables attackers to execute arbitrary code on the affected systems. Detailed information on the vulnerability and its implications can be found in the advisories provided by the GeoServer and GeoTools projects.

According to the National Vulnerability Database (NVD), CVE-2024-36401 has a high severity rating, underscoring the urgency for affected users to apply necessary patches and mitigations. This vulnerability stems from improper input validation and insufficient security measures in handling geospatial data, making it a prime target for exploitation by malicious actors.

Further technical details and potential exploit scenarios are outlined in various security advisories and repositories, including the official GeoServer security advisory, GeoTools security advisory, and a detailed report by security researchers on GitHub. The vulnerability highlights the need for robust security practices in managing geospatial data infrastructures and the critical importance of timely updates and security patches to mitigate such high-risk vulnerabilities.

Usage

# With starting a custom local OOB server
python3 detect.py --target http://localhost:8080 --type ws:states

# With remote OOB server (like Burp Collaborator)
python3 detect.py --target http://localhost:8080 --type ws:states --oob-server http://xxx.oaistify.com

Disclaimer

This exploit script has been created solely for the purposes of research and for the development of effective defensive techniques. It is not intended to be used for any malicious or unauthorized activities. The author and the owner of the script disclaim any responsibility or liability for any misuse or damage caused by this software. Users are urged to use this software responsibly and only in accordance with applicable laws and regulations. Use responsibly.