Arbitrary File Upload Affecting pimcore/pimcore package, versions <10.2.9


0.0
medium

Snyk CVSS

    Attack Complexity Low
    Availability High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (17th percentile)
Expand this section
NVD
7.8 high

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 ID SNYK-PHP-PIMCOREPIMCORE-2343464
  • published 19 Jan 2022
  • disclosed 19 Jan 2022
  • credit Pocas

How to fix?

Upgrade pimcore/pimcore to version 10.2.9 or higher.

Overview

pimcore/pimcore is a content & product management framework (CMS/PIM/E-Commerce).

Affected versions of this package are vulnerable to Arbitrary File Upload. Due to missing validation, it is possible to upload an infinite number of dangerous SVG files in Settings => System Settings => Appearance and Branding of the "pimcore" service.

PoC:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
   <rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
   <script>alert(document.domain)</script>
</svg>

  1. Open the https://10.x-dev.pimcore.fun/admin/login?perspective=
  2. After login, Go to "Settings" => "System Setting" => "Appearance & Branding"
  3. Upload a SVG file using the Custom Logo Logic
  4. Open the URL of SVG file