External Control of File Name or Path Affecting aimeos/aimeos-core package, versions >=2024.04.1, <2024.04.5


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th 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-AIMEOSAIMEOSCORE-7222567
  • published9 Jun 2024
  • disclosed7 Jun 2024
  • creditShail Shah

Introduced: 7 Jun 2024

CVE-2024-36811  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade aimeos/aimeos-core to version 2024.04.5 or higher.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path through the image upload functionality. An attacker can execute arbitrary code by uploading a crafted PHP file and exploiting a path traversal vulnerability.

PoC

  1. Login to your low privilege aimeos (role = editor) account & go to catalog --> Products --> Select any product --> Media

  2. Upload PHP shell with GIF89a header using image upload feature.

  3. Intercept the request using Burp Suite & change media.url parameter's extension to .php

  4. Note down the path of the shell which can be fetched in step 3 in the media.url parameter & forward the request

  5. The response will show "Error:Error saving data" but the shell will be uploaded at the above path.

  6. Navigate to the shell path noted in step 4 to execute remote code

CVSS Scores

version 3.1