HIGH8.8
GHSA-cwhm-272p-3wj9
Yii Framework Cross-Site Request Forgery (CSRF)
Quick fix
GHSA-cwhm-272p-3wj9 — yiisoft/yii2: upgrade to the fixed version with the command below.
composer require yiisoft/yii2:^2.0.14Details
In Yii Framework 2.x before 2.0.14, the switchIdentity function in web/User.php did not regenerate the CSRF token upon a change of identity.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/yiisoft/yii2-dev
Introduced in:
2.0Fixed in: 2.0.14Fix
composer require yiisoft/yii2-dev:^2.0.14References
- https://nvd.nist.gov/vuln/detail/CVE-2018-6009[ADVISORY]
- https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml[WEB]
- https://github.com/yiisoft/yii2-framework[PACKAGE]
- https://www.yiiframework.com/news/165/yii-2-0-14-is-released[WEB]