====================================================================== Defcom Labs Advisory def-2001-30 Oracle9iAS Web Cache/2.0.0.1.0 Multiple DoS and Buffer Overflow Authors: George Hedfors Andreas Junestam Release Date: 2001-10-18 ====================================================================== ------------------------=[Brief Description]=------------------------- Release 2.0.0.1.0 and perhaps even previous releases, contain a URL driven buffer overrun condition which either can cause process exiting, process hanging or injection of malicious code. ------------------------=[Affected Systems]=-------------------------- Oracle9iAS Web Cache/2.0.0.1.0 on all supported platforms. ----------------------=[Detailed Description]=------------------------ A simple URL driven denial of service or buffer overflow condition occurs when a very long text string is sent to the web service. This occurs on all four web services that the Oracle9iAS Web Cache software provides. The four services are by default run on: Port 1100 = Incoming web cache proxy. Port 4000 = Administrative interface. Port 4001 = Web XML invalidation port. Port 4002 = Statistics port. * Buffer overflow condition: When sending a request containing / + 'A' x 3095 + 'N' x 4, the process terminates with the with the following state dump: <....snip> State Dump for Thread Id 0x104 eax=00000c1d ebx=00000000 ecx=00000c1d edx=026f0041 esi=01baac86 edi=0040deb6 eip=4e4e4e4e esp=0632fe08 ebp=41414141 iopl=0 cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000216 * Denial of service: Upon sending a string longer then 3570 characters, the process simply exists without stack dump: 'GET /<3571 x A> HTTP/1.0' The following three denial of service attacks result in the process hanging and the CPU usage of 100% and a reboot is required in order to terminate the hanging processes. - When sending a string containing approximately 3094 characters. - When sending more aproximatly 4000 characters in the HTTP header. User-Agent is one of the verified headers where this condition exists. 'GET / HTTP/1.0' 'User-Agent: <4000 x A>' - Sending the following request (this only affects the webcache admin interface): 'GET /. HTTP/1.0' ---------------------------=[Workaround]=----------------------------- Download patch from Oracle's support website, http://metalink.oracle.com NT/WIN2K: Patch number 2044682 SUN Sparc Solaris: Patch number 2042106 HP-UX: Patch number 2043908 Linux: Patch number 2043924 Compaq Tru64 Unix: Patch number 2043921 IBM AIX: Patch number 2043917 -----------------------------=[Exploit]=------------------------------ For NT/WIN2K, see attached file, webcache.pl -------------------------=[Vendor Response]=-------------------------- Vendor was notified on 2001-09-17. Patch is released. ====================================================================== This release was brought to you by Defcom Labs labs@defcom.com labs.defcom.com ======================================================================