PT-2022-22113 · Yii2 Gii · Yii2 Gii
Boris Kovalkov
·
Published
2022-12-09
·
Updated
2022-12-13
·
CVE-2022-34297
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Yii2 Gii versions through 2.2.4
Description
The issue allows stored XSS by injecting a payload into any field. Some fields, such as Message Category in Model Generator, CRUD Generator or Form Generator, and Author Name in Extension Generator, are being cached without sanitization of their contents when the Preview button is pressed. This leads to the possibility of injecting malicious JavaScript in specified pages by placing it in said fields and caching it by pressing the Preview button. On each consequent visit of specified pages, malicious JavaScript will be loaded from the server and executed in the client's browser.
Recommendations
For versions through 2.2.4, as a temporary workaround, consider disabling the Preview button functionality in the affected generators until a patch is available. Restrict access to the caching mechanism for the specified fields to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Yii2 Gii