Skip to content
XSS Write-up Intermediate

Pimcore 11.4.2-Stored XSS (CVE-2024–11954)

A PDF file uploaded to Pimcore's asset manager could contain JavaScript that executes when the document is opened in a browser. An attacker could upload such a file and get a victim to open its direct URL, running script in the victim's browser context.

maeitsec Follow

Published on medium.com

A vulnerability classified as problematic was found in Pimcore 11.4.2. Affected by this vulnerability is an unknown functionality of the component Search Document.

Maeitsec, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application served uploaded PDF files inline from its own origin without sanitising or forcing download, so embedded JavaScript in the PDF ran in the site's context.

Impact

Script embedded in the PDF could run in a visitor's browser when the file URL is opened, though the author notes no session cookies were present in their test.

What the attacker needed

An account able to upload assets; victim opens the PDF URL

How it was found

  1. Log in as an administrator.
  2. Go to the Assets section and add an asset by uploading files.
  3. Upload the malicious PDF.
  4. Use search, select the document, and copy its path.
  5. Open the copied path in a new tab to trigger the script.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A PDF file can carry JavaScript inside it, and some browsers or viewers will run that script when the file is opened. Here the application stored the uploaded PDF and served it from its own address, so the script ran as if it came from the site itself. That lets an attacker run code in a visitor's browser, which is called cross-site scripting.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by maeitsec

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.