CVE-2022-1997
PHP vulnerability analysis and mitigation

Overview

A stored Cross-site Scripting (XSS) vulnerability was discovered in GitHub repository francoisjacquet/rosariosis versions prior to 9.0. The vulnerability was assigned CVE-2022-1997 and was disclosed on June 8, 2022 (NVD).

Technical details

The vulnerability has been assigned 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 vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). The issue was related to improper input sanitization in the PreparePHP_SELF function, where inline JavaScript could be injected through the URL (GitHub Commit).

Impact

The vulnerability could allow an attacker to execute malicious JavaScript code in the context of other users' browsers, potentially leading to theft of sensitive information, session hijacking, or other client-side attacks (NVD).

Mitigation and workarounds

Users should upgrade to RosarioSIS version 9.0 or later which contains the fix. The patch modifies the PreparePHP_SELF function to properly sanitize URL parameters and remove inline JavaScript (GitHub Commit).

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