Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') Affecting opencart/opencart package, versions >=4.0.0.0


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.1% (44th 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 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-OPENCARTOPENCART-5922105
  • published28 Sept 2023
  • disclosed27 Sept 2023
  • creditPoh Jia Hao

Introduced: 27 Sep 2023

CVE-2023-2315  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

opencart/opencart is a shopping cart system

Affected versions of this package are vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') via the 'Log' component. An attacker can empty out arbitrary files on the server.

Note: This vulnerability can be exploited when the attacker has a set of valid credentials to the backend dashboard with access and modify permissions on tool/log.

CVSS Scores

version 3.1