Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting pimcore/admin-ui-classic-bundle package, versions <1.3.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-PIMCOREADMINUICLASSICBUNDLE-6253731
  • published20 Feb 2024
  • disclosed19 Feb 2024
  • creditOussama RAHALI

Introduced: 19 Feb 2024

CVE-2024-25625  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade pimcore/admin-ui-classic-bundle to version 1.3.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') due to the invitationLinkAction function in the UserController improperly trusting user input when generating URLs. An attacker can manipulate the HTTP host header in requests to the /admin/user/invitationlink endpoint, leading to the generation of URLs with the attacker's domain. This can be exploited to perform phishing attacks by making the URLs in the invitation links emails point to an attacker-controlled domain.

PoC

POST /admin/user/invitationlink HTTP/1.1 
Host: attacker-domain.evil 
Cookie: PHPSESSID=test
X-pimcore-extjs-version-major: 7
X-pimcore-extjs-version-minor: 0
X-Requested-With: XMLHttpRequest
X-pimcore-csrf-token: 961c37cf60edfdc2eec5a705cb048aaa8c32804d

username=[username of a valid user]

References

CVSS Scores

version 3.1