Skip to content
XSS Disclosed report Beginner CVE-2023-0323

pimcore is vulnerable to cross-site scripting via "title field " in data objects

A stored cross-site scripting vulnerability existed in Pimcore's data object title field, allowing an attacker to inject a payload that executes when the data object is opened. This could lead to stolen user cookies.

pimcore/pimcore

Originally disclosed on huntr

Impact

The vulnerability is capable of resulting in stolen user cookies.

Proof of Concept

Login with dev account https://11.x-dev.pimcore.fun/admin/?_dc=1670962076&perspective=

Go to setting --> data objects --> classes --> events

Click media under genaral settings

Add payload in title field.

Go to data objects module and open events, xss will trigger

// PoC.js ">{{media:0}}

Patches

Update to version 10.5.14 or apply this patch manually https://github.com/pimcore/pimcore/pull/13916.patch

Workarounds

Apply https://github.com/pimcore/pimcore/pull/13916.patch manually.

References

https://huntr.dev/bounties/129d6a4b-0504-4de1-a72c-3f12c4552343/

From the GitHub Advisory Database (GHSA-6vf6-g3pr-j83h, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

How it worked

Root cause

Likely the application did not properly sanitise user input in the title field before rendering it in the data objects module.

What the attacker needed

Dev account access; victim opens the affected data object

The fix

The vulnerability was fixed in version 10.5.14 and by applying the provided patch.

How it was found

  1. Log in with a dev account to the Pimcore admin panel.
  2. Navigate to Settings > Data Objects > Classes > Events.
  3. Click on 'media' under general settings.
  4. Insert a malicious payload into the title field.
  5. Go to the Data Objects module and open 'events' to trigger the XSS.

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 report has not been written yet. The Original tab links to the source.

This is a stored cross-site scripting (XSS) bug. An attacker can put malicious code into a field that is saved and later shown to other users, so when they view it, the code runs in their browser and can steal their login cookies.

What is XSS?

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

More from pimcore/pimcore

View all

The newest disclosed reports for this program.

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.