Yii Framework Cross-Site Request Forgery (CSRF)
Summary
CVE-2018-6009: Yii Framework Cross-Site Request Forgery (CSRF). Affects yiisoft/yii2 versions >= 2.0, < 2.0.14. Fixed in 2.0.14. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
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.
How To Fix
Minimum fixed version
2.0.14
This is the first release that contains the fix.
composer require yiisoft/yii2:2.0.14
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
References
Related vulnerabilities
Recent vulnerabilities recorded for yiisoft/yii2.