Pimcore contains Unrestricted Upload of File with Dangerous Type
Impact
The upload functionality for updating user profile does not properly validate the file content-type, allowing any authenticated user to bypass this security check by adding a valid signature (p.e. GIF89) and sending any invalid content-type. This could allow an authenticated attacker to upload HTML files with JS content that will be executed in the context of the domain.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 10.5.16Ecosystem versions | 10.5.16 |
Version evidence: OSV · GHSA-8xv4-jj4h-qww6
View original version evidence (206 explicit versions)
Original source description
Impact
The upload functionality for updating user profile does not properly validate the file content-type, allowing any authenticated user to bypass this security check by adding a valid signature (p.e. GIF89) and sending any invalid content-type. This could allow an authenticated attacker to upload HTML files with JS content that will be executed in the context of the domain.
Patches
Update to version 10.5.16 or apply this patch manually https://github.com/pimcore/pimcore/pull/14125.patch
References
- Security advisory github.com/pimcore/pimcore/security/advisories/GHSA-8xv4-jj4h-qww6
- Security advisory nvd.nist.gov/vuln/detail/CVE-2023-23937
- Patch github.com/pimcore/pimcore/pull/14125
- Patch github.com/pimcore/pimcore/commit/75a448ef8ac74424cf4e723afeb6d05f9eed872f
- Source reference github.com/pimcore/pimcore
- Source reference huntr.dev/bounties/aa7ee076-d729-4fcc-9bcc-48bcbb8eac38