cbcvebase.
CVE-2010-0361
published 2010-01-20

CVE-2010-0361: Stack-based buffer overflow in the WebDAV implementation in webservd in Sun Java System Web Server (aka SJWS) 7.0 Update 7 allows remote attackers to cause a…

PriorityP266critical10CVSS 2.0
AVNACLAuNCCICAC
EXPLOIT
EPSS
80.52%
99.6th percentile
Stack-based buffer overflow in the WebDAV implementation in webservd in Sun Java System Web Server (aka SJWS) 7.0 Update 7 allows remote attackers to cause a denial of service (daemon crash) and possibly have unspecified other impact via a long URI in an HTTP OPTIONS request.

Affected

1 ranges
VendorProductVersion rangeFixed in
sunjava_system_web_server

Detection & IOCsextracted from sources · hover to see the quote

commandOPTIONS /<long_uri> HTTP/1.0
path/webdav
other0x12012177
bytes
%66%81%CA%FF%0F%42%52%6A%02%58%CD%2E%3C%05%5A%74%EF%B8%77%30%30%74%8B%FA%AF%75%EA%AF%75%E7%FF%E7
bytes
%77%30%30%74%77%30%30%74
bytes
%90%80%02%10
bytes
%F2%C2%02%10%FF%FF%FF%FF%4C%C1%02%10%E8%45%0D%10%A4%22%86%7C%9D%31%08%10%BF%13%01%10%BA%13%01%10%BF%13%01%10%0D%7C%0A%10
bytes
%ee%7b%01%12
bytes
%eb%10%90%90
  • Detect HTTP OPTIONS requests with an abnormally long URI (>760 bytes) targeting a WebDAV-enabled directory, characteristic of CVE-2010-0361 exploitation.
  • Detect the egghunter tag 'w00tw00t' (URL-encoded as %77%30%30%74%77%30%30%74) in HTTP request URIs or bodies, used by both exploit variants to locate shellcode in memory.
  • Detect the egghunter byte sequence (URL-encoded: %66%81%CA%FF%0F%42%52%6A%02%58%CD%2E%3C%05%5A%74%EF%B8%77%30%30%74%8B%FA%AF%75%EA%AF%75%E7%FF%E7) in HTTP OPTIONS request URIs.
  • The exploit sends multiple preliminary GET requests to fill memory with shellcode before sending the final OPTIONS overflow buffer; detect a pattern of repeated GET requests followed by a long OPTIONS request from the same source IP.
  • The Metasploit module places the payload in both the Referrer and User-Agent headers of the OPTIONS request; inspect these headers for encoded shellcode (AlphanumMixed encoding with ECX as BufferRegister).
  • The SEH overwrite occurs at offset 760 (768 in v2 exploit) within the OPTIONS URI; monitor for OPTIONS requests to webservd (Sun Java System Web Server) with URI lengths in the 760–800 byte range.
  • The ROP chain references ns-httpd40.dll gadgets and targets SetProcessDEPPolicy (0x7C8622A4) for DEP bypass; presence of these addresses in network traffic indicates the DEP-bypass variant of the exploit.
  • ·The exploit requires WebDAV to be enabled on the target directory; the vulnerability is only reachable if the attacker specifies a path to a WebDAV-enabled collection.
  • ·The SEH-based exploit (Metasploit) uses a pop/pop/ret gadget in xerces-C_2_6.dll (0x12012177); the ROP-based DEP-bypass exploit uses gadgets from ns-httpd40.dll — module ASLR status affects reliability.
  • ·The DEP-bypass exploit (v2) was tested on Windows XP SP3 with and without DEP; the original exploit (v1) was tested on Windows XP SP3 without DEP only. Other platforms (Linux, Solaris) are noted as vulnerable but no working ROP chains are provided.
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.