Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

New CVE Module Proposal – GeoServer CVE-2024-36401

Open Gauravsharma2040 opened this issue 9 months ago • 3 comments

Summary

GeoServer is affected by a Remote Code Execution vulnerability (CVE-2024-36401) triggered via crafted WFS filter expressions leading to unsafe expression evaluation.

Nettacker currently does not include a detection module for this vulnerability. This issue proposes adding a deterministic detection module for CVE-2024-36401.

Technical Details CVE-2024-36401 allows remote attackers to trigger server-side expression evaluation through specially crafted WFS XML requests. In vulnerable versions (e.g., 2.23.2), sending a crafted ogc:PropertyName expression such as: " exec(java.lang.Runtime.getRuntime(),"id") " causes the server to return: java.lang.NullPointerException along with internal class references (e.g., org.geotools.*). In patched versions (2.24.x tested), the same request returns a clean validation error without Java exception disclosure.

Detection Logic The proposed module: Uses POST request to /geoserver/wfs Sends crafted XML payload Detects vulnerability only if response contains: java.lang.NullPointerException

This avoids false positives because patched versions return only: ServiceException code="InvalidParameterValue" without stack traces.

Proposal If maintainers agree, I will submit a PR adding: geoserver_cve_2024_36401.yaml with tested deterministic detection logic.

Gauravsharma2040 avatar Feb 25 '26 17:02 Gauravsharma2040

@Gauravsharma2040 please note that @sankalp-b1401 is already working on this module. Please either collaborate with him or find another CISA KEV CVE module to work on

securestep9 avatar Feb 25 '26 17:02 securestep9

Thank you @securestep9 for letting me know ,I appreciate the clarification. I checked open issues and PRs before starting work on this, but I may have missed an existing discussion or internal tracking related to this module. If there is a place where CVEs currently being worked on are documented (e.g., a tracking issue, project board, or discussion thread), I’d be grateful if you could point me to it so I can avoid duplicating work in the future.

I’m happy to collaborate with @sankalp-b1401 if that’s preferred, or alternatively I can move on to another CISA KEV CVE module. Please let me know what would be most helpful. Thanks!

Gauravsharma2040 avatar Feb 25 '26 17:02 Gauravsharma2040

Hello @Gauravsharma2040 you didn't miss anything, there isn't any section/discussion for it. Please connect with me on Slack, I'll share my progress on the module with you, you can then decide if you want to collaborate or try something else.

sankalp-b1401 avatar Feb 25 '26 18:02 sankalp-b1401