CVE-2022-1997: Cross-site Scripting in RosarioSIS
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52288%
CWE
Published
6/9/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
francoisjacquet/rosariosis | composer | < 9.0 | 9.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows a critical change from strpos
to stripos
in URL sanitization logic. The original case-sensitive check failed to remove JavaScript handlers with non-lowercase characters, enabling stored XSS via crafted URLs. This function
is directly responsible for neutralizing dangerous patterns in PHP_SELF
values used during page generation, making it the root cause of improper input sanitization (CWE-79).