Gửi #1071580: xiaomalover Yii2 CMS 64888f281cbf52e4cf3677da8509beaccc73d5b7 Improper Authenticationthông tin

tiêu đềxiaomalover Yii2 CMS 64888f281cbf52e4cf3677da8509beaccc73d5b7 Improper Authentication
Mô tảThe backend enables cookie-based auto-login (`enableAutoLogin => true`, cookie `__admin_identity`) and signs that cookie with a validation key that is hard-coded in `protected/core/config/web.php:10`. The administrator model stores no per-user auth key: `Admin::getAuthKey()` returns nothing and `Admin::validateAuthKey()` compares the non-existent `authKey` property — resolved through that same getter, therefore `null` — with the value carried in the cookie, which the application itself always writes as `null`. An unauthenticated attacker who knows the repository can sign a cookie containing `[1, null, duration]` with the published key, present it on any `/admin/*` route and be authenticated as administrator ID 1, without a password or an existing session.
Nguồn⚠️ https://github.com/weison-tech/yii2-cms/issues/7
Người dùng
 Wuwj (UID 101900)
Đệ trình03/11/2026 13:18 (cách đây 24 ngày)
Kiểm duyệt27/11/2026 21:40 (24 days later)
Trạng tháiđược chấp nhận
Mục VulDB445014 [weison-tech yii2-cms đến 1.0.2 Admin Auto-Login Identity Cookie web.php xác thực yếu]
điểm20

Might our Artificial Intelligence support you?

Check our Alexa App!