Directory Traversal in PHP iCalendar print.php
A directory traversal vulnerability exists in print.php in PHP iCalendar 2.24 and earlier. The vulnerability is due to insufficient sanitization of the cookie_language parameter in a phpicalendar_* cookie, allowing remote attackers to include and execute arbitrary local files by supplying directory traversal sequences (..). This is distinct from CVE-2006-1292.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary local files on the server, potentially leading to remote code execution, information disclosure, or further compromise of the affected system.
If you can’t patch tonight, do this now.
As an interim mitigation, restrict access to the application to trusted users, and use web server configuration to block requests containing suspicious cookie values. Employ input validation and sanitization to prevent directory traversal sequences in user-supplied data.
Patch, then assume compromise.
Upgrade to a version of PHP iCalendar later than 2.24 where this vulnerability is patched. Ensure that all user-supplied input, especially cookie values, are properly sanitized and validated before being used in file inclusion operations.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.