GHSA-xr3m-6gq6-22cg

Suggest an improvement
Source
https://github.com/advisories/GHSA-xr3m-6gq6-22cg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-xr3m-6gq6-22cg/GHSA-xr3m-6gq6-22cg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xr3m-6gq6-22cg
Published
2025-01-28T19:12:44Z
Modified
2025-01-29T17:38:26.752382Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Pimcore Authenticated Stored Cross-Site Scripting (XSS) Via Search Document
Details

Summary

A Stored Cross-Site Scripting (XSS) vulnerability in PIMCORE allows remote attackers to inject arbitrary web script or HTML via the PDF upload functionality. This can result in the execution of malicious scripts in the context of the user's browser when the PDF is viewed, leading to potential session hijacking, defacement of web pages, or unauthorized access to sensitive information.

Details

The vulnerability is present in the PDF upload functionality of the PIM Core Upload module. When a user uploads a PDF file, the application fails to properly sanitize the content, allowing embedded scripts to be executed when the PDF is viewed. The affected code is located in the file handling and rendering logic of the PDF upload feature.

PoC

  1. Log in as Administrator image

  2. Hover to Assets image

  3. Right click and click "Add Asset(s) > upload files image

  4. Upload malicious pdf image

  5. Click on search and select document image

  6. copy the path and open to a new tab

https://demo.pimcore.fun/admin/Sample C

image

  1. XSS PDF can be access without authentication.

image

Image showing no cookies indicator that there are no session currently in

image

Impact

This is a Stored Cross-Site Scripting (XSS) vulnerability. It impacts any user who views the malicious PDF, potentially leading to session hijacking, defacement of web pages, or unauthorized access to sensitive information. The severity is high due to the potential for significant impact on confidentiality and integrity.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-01-28T19:12:44Z"
}
References

Affected packages

Packagist / pimcore/pimcore

Package

Name
pimcore/pimcore
Purl
pkg:composer/pimcore/pimcore

Affected ranges

Type
ECOSYSTEM
Events
Introduced
11.4.2
Fixed
11.5.3

Affected versions

v11.*

v11.4.2
v11.4.3
v11.4.4
v11.5.0-RC1
v11.5.0-RC2
v11.5.0
v11.5.1
v11.5.2