Description
cool-admin-midway through 8.0.0 contains an authorization bypass vulnerability that allows non-superadmin admins to read, modify, or delete other admins' roles by supplying arbitrary role ids. Attackers holding ordinary sys:role permissions can call /admin/sys/role/info, update, or delete with another admin's role id to rewrite menu and department grants, changing other users' effective access.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cool-team-official | cool-admin-midway | ≤ 8.0.0 | — |
References
- https://hackmd.io/@hieuPenguinnn/cool-admin-midway-base-crud-role-ownership-idor third-party-advisory
- https://github.com/cool-team-official/cool-admin-midway/blob/e545ef6f3b0c08581e34bd3207ca57d851ccc3ae/src/modules/base/controller/admin/sys/role.ts#L11-L36 technical-description
- https://github.com/cool-team-official/cool-admin-midway/blob/e545ef6f3b0c08581e34bd3207ca57d851ccc3ae/src/modules/base/service/sys/role.ts#L54-L118 technical-description
- https://github.com/cool-team-official/cool-admin-midway product
- VulnCheck Advisory: cool-admin-midway through 8.0.0 Missing Authorization via System Role Endpoints third-party-advisory