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]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/yiisoft/yii2"]}'