CVE-2024-34717: Prestashop/prestashop Anonymous PrestaShop Customer Can Download Vulnerability

MODERATE
Advisory Identifier: GHSA-7pjr-2rgh-fc5g
CVSS 5.3
CWE-200
Published
Advisory Summary

CVE-2024-34717 is a MODERATE (CVSS 5.3) anonymous prestashop customer can download vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Prestashop/prestashop libraries in the Packagist ecosystem. The issue involves anonymous prestashop customer can download other customers' invoices. Remediation is available by upgrading affected packages to version 8.1.6.

CVE-2024-34717 at a Glance

CVE Identifier CVE-2024-34717
GHSA Identifier GHSA-7pjr-2rgh-fc5g
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Prestashop/prestashop
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-34717

To remediate this vulnerability, upgrade all affected Prestashop/prestashop dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

prestashop/prestashop fixed: 8.1.6
Upgrade prestashop/prestashop to 8.1.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for prestashop/prestashop

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-34717, inspect your project dependencies for Prestashop/prestashop:

inspect dependencies for prestashop/prestashop

Analyze the terminal output to locate any version of Prestashop/prestashop in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.1.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Prestashop/prestashop, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Since PrestaShop 8.1.5, any invoice can be downloaded from front-office in anonymous mode, by supplying a random secure_key parameter in the url. ### Patches Patched in 8.1.6 ### Workarounds Upgrade to 8.1.6 Thank you to Samuel Bodevin, who found this vulnerability and shared it with the PrestaShop team.

CVE-2024-34717 Affected Prestashop/prestashop Versions

1 component(s)
Fixed Versions:
8.1.6
Product / Package Ecosystem Affected Versions Fixed Version
prestashop/prestashop
Packagist
≥ 8.1.5
< 8.1.6
All 1 versions
8.1.5
8.1.6

References

Frequently Asked Questions

What is CVE-2024-34717?
CVE-2024-34717 is a security vulnerability in Prestashop/prestashop involving Anonymous PrestaShop customer can download other customers' invoices under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Prestashop/prestashop versions are affected?
Affected versions include releases prior to 8.1.6 across affected packages: prestashop/prestashop.
What version fixes CVE-2024-34717?
Upgrading to 8.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prestashop/prestashop affected?
Yes, prestashop/prestashop is affected in releases prior to 8.1.6. Upgrade your dependency to 8.1.6 or later.
What is the CVSS score of CVE-2024-34717?
CVE-2024-34717 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-34717?
CVE-2024-34717 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for CVE-2024-34717?
Run the dependency tree command: 'inspect dependencies for prestashop/prestashop'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7pjr-2rgh-fc5g",
  "modified" : "2024-05-14T20:17:27Z",
  "published" : "2024-05-14T20:17:27Z",
  "aliases" : [ "CVE-2024-34717" ],
  "summary" : "Anonymous PrestaShop customer can download other customers' invoices",
  "details" : "### Impact\nSince PrestaShop 8.1.5, any invoice can be downloaded from front-office in anonymous mode, by supplying a random secure_key parameter in the url.\n\n### Patches\nPatched in 8.1.6\n\n### Workarounds\nUpgrade to 8.1.6\n\nThank you to Samuel Bodevin, who found this vulnerability and shared it with the PrestaShop team.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "prestashop/prestashop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.1.5"
      }, {
        "fixed" : "8.1.6"
      } ]
    } ],
    "versions" : [ "8.1.5" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-7pjr-2rgh-fc5g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34717"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PrestaShop/PrestaShop/commit/46b9a2b430dd2008ac061fbcbae9f7af55a7920a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/PrestaShop/PrestaShop"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PrestaShop/PrestaShop/releases/tag/8.1.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T20:17:27Z",
    "nvd_published_at" : "2024-05-14T16:17:28Z"
  }
}