| 标题 | light0011 cms f72cf46f601efb2a0618c3814cc2f61380b38930 Improper Authentication |
|---|
| 描述 | `App/Home/Model/UserModel.class.php:82-84` identifies the current user solely through `cookie('username')`, and `App/Home/Model/CommentModel.class.php:13-21` writes that cookie value as the comment author. The cookie helper in `ThinkPHP/Common/functions.php:1390-1415` stores and reads scalar cookie values without signing or encryption, while `Home/CommentController.class.php:8-16` performs no server-side user authentication. An attacker can send a manually chosen `username` cookie for an existing account and publish comments attributed to that account.
|
|---|
| 来源 | ⚠️ https://github.com/light0011/cms/issues/11 |
|---|
| 用户 | 404my (UID 99931) |
|---|
| 提交 | 2026-07-18 08時28分 (2 月前) |
|---|
| 管理 | 2026-09-06 20時16分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 399479 [light0011 cms Cookie Helper UserModel.class.php 用户名 弱身份验证] |
|---|
| 积分 | 20 |
|---|