Exploit database

Vulnerability

CVE-2020-28949

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

Archive_Tar through 1.4.10 has :// filename sanitization only to address phar attacks, and thus any other stream-wrapper attack (such as file:// to overwrite files) can still succeed.

CVE Program

Exploit source choices

1 source
PEAR Archive_Tar 1.4.10 Arbitrary File Write
MSF-multi--fileformat--archive_tar_arb_file_writeMetasploitPHP / remotePreferred

This module takes advantages of Archive_Tar <= 1.4.10'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.

2020-11-17archive_tar_arb_file_write.rb