Description
yii2-starter-kit through 4.2.0 exposes the Yii debug and Gii modules to all IP addresses by setting allowedIPs to ['*'] in its default development configuration. Unauthenticated remote attackers can access the debug endpoint to read sensitive data including session cookies and database queries, or access the Gii endpoint to generate and write PHP files into the application directory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| yii2-starter-kit | yii2-starter-kit | ≤ 4.2.0 | — |
References
- GitHub Issue #797 issue-tracking
- https://github.com/yii-starter-kit/yii2-starter-kit product
- https://github.com/yii-starter-kit/yii2-starter-kit/blob/cc2c451e8c959c7300b04efea597706a38609f58/common/config/web.php#L21 technical-description
- VulnCheck Advisory: yii2-starter-kit through 4.2.0 Debug and Gii Module Exposure third-party-advisory