Yii2 Gii Cross-site Scripting vulnerability
Moderate severity
GitHub Reviewed
Published
Dec 10, 2022
to the GitHub Advisory Database
•
Updated Jan 29, 2023
Description
Published by the National Vulnerability Database
Dec 9, 2022
Published to the GitHub Advisory Database
Dec 10, 2022
Reviewed
Dec 13, 2022
Last updated
Jan 29, 2023
Some fields like Message Category (requires I18N enabled) in Model Generator, CRUD Generator or Form Generator, Author Name in Extension Generator, etc. are being cached without sanitisation of their contents when the Preview button is pressed. This leads to possibility of injecting malicious javascript in specified pages by placing it in said fields and caching it by pressing Preview button. On each consequent visit of specified pages malicious javascript will be loaded from server and executed in client's browser.
References