GitHub Advisory Database
GHSA-cwhm-272p-3wj9
Yii Framework Cross-Site Request Forgery (CSRF)
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | yiisoft/yii2 | From 2.0 before 2.0.14 (fixed in 2.0.14) |
| Packagist | yiisoft/yii2-dev | From 2.0 before 2.0.14 (fixed in 2.0.14) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-6009
- https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml
- https://github.com/yiisoft/yii2-framework
- https://www.yiiframework.com/news/165/yii-2-0-14-is-released