CVE-2024-27087
PHP vulnerability analysis and mitigation

Overview

CVE-2024-27087 affects Kirby, a content management system, specifically in versions 4.0.0 through 4.1.0. The vulnerability was discovered in the new link field feature introduced in Kirby 4, which allows different link types including a 'Custom' link type. The issue was disclosed on February 26, 2024, and has been patched in version 4.1.1 (GitHub Advisory).

Technical details

The vulnerability is classified as a Cross-Site Scripting (XSS) issue with a CVSS v3.1 base score of 5.4 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The 'Custom' link type in the link field was designed to be flexible for advanced use cases, but this flexibility allowed the javascript: URL scheme, which could be exploited to execute arbitrary JavaScript code (GitHub Advisory, NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary JavaScript code when a user or visitor clicks on a link generated from the contents of the link field. In the Panel, malicious scripts can trigger requests to Kirby's API with the victim's permissions. This is particularly critical in environments with multiple authenticated Panel users, as attackers could potentially escalate their privileges if they gain access to an admin user's Panel session (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Kirby version 4.1.1, which updates the link field to hide the 'Custom' link type by default. Users are advised to update to this or a later version. Additionally, sites can be protected by limiting the acceptable link types with the options field property. For cases where the 'Custom' link type is needed, additional validation should be implemented (GitHub Advisory, Kirby Patch).

Community reactions

The vulnerability was responsibly disclosed by security researcher Natwara Archeepsamooth (@PlyNatwara), who identified the javascript: attack vector. The vendor has added warnings to their documentation regarding the use of the 'Custom' link type (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management