PT-2024-21045 · Pimcore · Pimcore Admin Classic Bundle
Oussama-Rahali
·
Published
2024-02-19
·
Updated
2025-04-01
·
CVE-2024-25625
CVSS v3.1
9.3
Critical
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
pimcore/admin-ui-classic-bundle versions prior to 1.3.4
Description
A potential security issue has been discovered in the
pimcore/admin-ui-classic-bundle. The issue involves a Host Header Injection in the invitationLinkAction function of the UserController, specifically in the way $loginUrl trusts user input. The host header from incoming HTTP requests is used unsafely when generating URLs. An attacker can manipulate the HTTP host header in requests to the "/admin/user/invitationlink" endpoint, resulting in the generation of URLs with the attacker's domain. If a host header is injected in the POST request, the $loginURL parameter is constructed with this unvalidated host header. It is then used to send an invitation email to the provided user. This issue can be used to perform phishing attacks by making the URLs in the invitation links emails point to an attacker-controlled domain.Recommendations
For versions prior to 1.3.4, update to version 1.3.4 or later to resolve the issue. As a temporary workaround, consider validating the host header and ensuring it matches the application's domain. It would also be beneficial to use a default trusted host or hostname if the incoming host header is not recognized or is absent. Restrict access to the
/admin/user/invitationlink endpoint to minimize the risk of exploitation. Avoid using the invitationLinkAction function until the issue is resolved.Exploit
Fix
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Pimcore Admin Classic Bundle