CVE-2018-6009Published Jan 22, 2018 · Jan 22Updated Oct 24
Yii Framework Cross-Site Request Forgery (CSRF)
High8.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| yiisoft/yii2 Packagist |
|
|
| yiisoft/yii2-dev Packagist |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| yiisoft/yii2 Packagist |
|
|
| yiisoft/yii2-dev Packagist |
|
|
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.
From the CVE record · mitre
In Yii Framework 2.x before 2.0.14, switchIdentity in web/User.php does not regenerate the CSRF token when a user's identity changes. This could leave a token from the previous identity valid; the input does not specify the attacker access or user interaction needed to exploit it.
Teams using Packagist packages yiisoft/yii2 or yiisoft/yii2-dev at versions >=2.0 and <2.0.14 should check their deployments.