PT-2024-21639 · Kirby · Kirby
Plynatwara
·
Published
2024-02-26
·
Updated
2024-12-31
·
CVE-2024-27087
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Kirby versions prior to 4.1.1
Description
Kirby is a content management system. The new link field introduced in Kirby 4 allows several different link types that each validate the entered link to the relevant URL format. It also includes a "Custom" link type for advanced use cases that don't fit any of the pre-defined link formats. As the "Custom" link type is meant to be flexible, it also allows the
javascript: URL scheme. In some use cases this can be intended, but it can also be misused by attackers to execute arbitrary JavaScript code when a user or visitor clicks on a link that is generated from the contents of the link field. This issue can lead to cross-site scripting (XSS) attacks, which can trigger requests to Kirby's API with the permissions of the victim, potentially escalating privileges if an attacker gains access to the Panel session of an admin user.Recommendations
For versions prior to 4.1.1, update to Kirby 4.1.1 or a later version to fix the vulnerability. As a temporary workaround, consider disabling the "Custom" link type or adding additional validation to prevent the execution of arbitrary JavaScript code. Restrict access to the link field to minimize the risk of exploitation. If you limit the acceptable link types with the
options field property, you are already protected.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Kirby