CVE-2022-2066: Cross site scripting in facturascripts
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.544%
CWE
Published
6/14/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
facturascripts/facturascripts | composer | < 2022.06 | 2022.06 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped user input in login error messages. The commit diff shows the vulnerability was patched by adding htmlspecialchars()
around the $nick variable in AppController::userAuth
. This function handles authentication and directly used user-controlled input (fsNick parameter) in a warning message without proper output encoding, making it the clear injection point for reflected XSS attacks when rendering error messages to users.