Description
yii2-starter-kit through 4.2.0 fails to validate file types in the backend storage upload actions, allowing authenticated managers to upload PHP files. Attackers with manager role can upload PHP scripts to the web-accessible storage directory and request them to execute arbitrary code on the server.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
yii2-starter-kit yii2-starter-kit
Default version status: unaffected
0 to ≤ 4.2.0affected
pkg:composer/yii2-starter-kit/yii2-starter-kitReferences
- https://github.com/yii-starter-kit/yii2-starter-kit/issues/797 ↗
- https://github.com/yii-starter-kit/yii2-starter-kit ↗
- https://github.com/yii-starter-kit/yii2-starter-kit/blob/cc2c451e8c959c7300b04efea597706a38609f58/backend/modules/file/controllers/StorageController.php#L36 ↗
- https://www.vulncheck.com/advisories/yii2-starter-kit-through-4.2.0-unrestricted-file-upload-rce ↗