| 标题 | PublicCMS 5 Improper Access Controls |
|---|
| 描述 | `TradePaymentController.cancel` accept a `paymentId` from the request and invoke service-layer state changes without verifying that the payment belongs to the authenticated user. Any logged-in user can cancel or initiate a refund for another user's payment if they know the `paymentId`. Poc:1. Use a test account Creating a payment, get `paymentId` ;2. Login as a low-privileged user ,extract `_csrf` token from cookie value: `PUBLICCMS_USER=<userId>_<csrfToken>`;3. The payment status changes (cancelled) even though the attacker does not own the payment.
|
|---|
| 来源 | ⚠️ https://github.com/sanluan/PublicCMS/issues/108 |
|---|
| 用户 | AliceS614 (UID 94277) |
|---|
| 提交 | 2026-01-21 13時55分 (9 月前) |
|---|
| 管理 | 2026-02-05 20時25分 (15 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 344592 [Sanluan PublicCMS 直到 4.0.202506.d/5.202506.d/6.202506.d Trade Payment TradePaymentService.java paid paymentId 权限提升] |
|---|
| 积分 | 20 |
|---|