Arbitrary File Upload Affecting elefant/cms package, versions <2.0.7


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
3.6% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-ELEFANTCMS-5805410
  • published26 Jul 2023
  • disclosed14 May 2022
  • creditUnknown

Introduced: 14 May 2022

CVE-2018-16974  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade elefant/cms to version 2.0.7 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary File Upload in apps/filemanager/upload/drop.php by using /filemanager/api/rm/.htaccess to remove the .htaccess file, and then using a filename that ends in .php followed by space characters (for bypassing the blacklist). Exploiting this vulnerability can result in PHP Code Execution.

CVSS Base Scores

version 3.1