Arbitrary file upload in Craft CMS

Published: 2018-01-02 21:04:42
Severity Medium
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2018-3814
CVSSv3 7.7 [CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]
CWE ID CWE-434
Exploitation vector Network
Public exploit Not available
Vulnerable software Craft CMS
Vulnerable software versions Craft CMS 2.6.3000
Vendor URL Pixel & Tonic, Inc.

Security Advisory

1) Arbitrary file upload

Description

The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.

The vulnerability exists due to insufficient validation of user-supplied data when uploading files via "Assets->Upload files" screen. A remote authenticated attacker can upload .jpg file with PHP code inside, then use the "Replace it" option to rename the file and add .php extension to it. As a result the uploaded PHP code will be executed on the server.


Remediation

Install update from vendor's repository.

External links

https://github.com/Snowty/myCVE/blob/master/CraftCMS-2.6.3000/README.md

Back to List