CVE-2022-0501: Cross-site Scripting in Beanstalk console
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54953%
CWE
Published
2/6/2022
Updated
2/3/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 |
---|---|---|---|
ptrofimov/beanstalk_console | composer | < 1.7.12 | 1.7.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the handling of the 'server' GET parameter in the global scope of lib/include.php without proper sanitization. The code directly assigns $_GET['server'] to $GLOBALS['server'] which is then reflected in the page output. Since this occurs in the global code and not within a named function, no specific vulnerable functions are identified. The fix applied htmlspecialchars to sanitize the input, confirming that the lack of output encoding in the parameter handling logic was the root cause. The absence of a dedicated function wrapping this logic results in an empty vulnerable_functions array.