- CVE-2009-1019 receives a CVSS Base Score of 7.5 denoting that a successful exploit of this vulnerability can lead to a full compromise of the targeted database. This vulnerability affects Oracle Database Server 220.127.116.11, 18.104.22.168DV, 10.1.0.5, 10.2.0.4, and 22.214.171.124. It is remotely exploitable without authentication.
Here is explanation of vulnerability I did found.
This exploit cause Oracle instance DoS.
Tested with 126.96.36.199.0 win32.
What this exploit does is just sending NSPTCN packet with attempt to establish connection.
After that, Listener sending NSPTRS packet, offering to send the same NSPTCN packet, but to Oracle RDBMS instance.
Exploit send the same NSPTCN packet to Oracle instance and awaits for NSPTAC (accept) packet.
After, exploit send broken NA packet.
(Which is started with DEADBEEF signature).
Actually, exploit sending correct NA packet, but it also contain zero at random byte in it, so it is broken.
Usually, Oracle server raises this error:
"TNS-12699: Native service internal error"
... and it drops connection.
Exploit establish connection and sending broken NA packet one time per second, eternally. Note also, 'zero' position is different each time.
For testing, please start Oracle instance and make sure no one made connection to it. Because, actually, vulnerability is not stable. Or, in other words, I didn't find a away to exploit it stably.
Now run exploit and use victim's hostname as argument. And wait up to for one hour.
If I'm correct, this is a heap corruption problems. We can see this in traces:
"***** Internal heap ERROR kghfrh:ds addr=07AD0004 ds=0C2973E8 *****" Heap corruption detected while KGH memory freeing.
After, as in any software with a lot of allocated memory chunks and broken memory allocating structures, Oracle instance is becoming insance. It may write in "incident" folder reports about very strange things.
If I'm correct (I may not) this problem is related to nsdisc() function in network layer. Oracle instance closes connection uses this function. It frees some memory, but the same chunk of memory is used again for another connection.
Download PoC and source code.
→ [list of blog posts]Please drop me email about any bug(s) and suggestion(s): dennis(@)yurichev.com.