CVE-2022-4455
NixOS vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in sproctor php-calendar affecting the index.php file. The vulnerability was identified by the CVE identifier CVE-2022-4455 and involves the manipulation of the $SERVER['PHPSELF'] argument. The issue was fixed through a patch (commit a2941109b42201c19733127ced763e270a357809) that improved input sanitization (Github Patch).

Technical details

The vulnerability exists due to improper neutralization of input during web page generation in the index.php file. The issue specifically relates to the handling of $SERVER['PHPSELF'] variable, which was initially using htmlentities() for sanitization. The fix involved changing to htmlspecialchars() with additional parameters (ENT_QUOTES, 'UTF-8') to provide better protection against XSS attacks. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

If exploited, this vulnerability could allow remote attackers to execute cross-site scripting attacks against users of the php-calendar application. The impact is considered moderate as it requires user interaction and can lead to limited disclosure and modification of data.

Mitigation and workarounds

The vulnerability has been patched in the php-calendar repository. The fix involves replacing the htmlentities() function with htmlspecialchars() using proper encoding parameters (ENTQUOTES, 'UTF-8') for the $SERVER['PHP_SELF'] variable. Users should update their installations to include the security fix from commit a2941109b42201c19733127ced763e270a357809 (Github Patch).

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