| tiêu đề | 1Panel-dev CordysCRM Not specified in supplied report Improper Authorization / IDOR |
|---|
| Mô tả | Submission reference: CVEsStudy-005
Reporter confirmation (2026-10-30): the reporter states that this finding has been validated, the vendor has been contacted beforehand, no CVE has been assigned to this issue, and this issue has not been submitted to another CNA. CVE assignment is requested. Runtime logs and vendor-contact records are not attached in this submission.
Evidence provenance: supplied source-analysis report. The submission-preparation agent did not independently execute the PoC. Reproduction steps below are reproduced from the supplied report; expected responses are not presented as captured output.
Repository: https://github.com/1Panel-dev/CordysCRM
Vendor field uses the repository owner.
Affected version / commit: not specified in the supplied original materials; exact affected release range remains unspecified.
Source report finding date (not a version): 2026-10-30
Title:
角色管理跨租户越权(/role/get、/role/update、/role/delete 无组织校验)
Affected component:
backend/crm/src/main/java/cn/cordys/crm/system/service/RoleService.java:117
Technical description:
RoleController 把客户端角色 ID 直接交给 RoleService,get()(117-126)、update()(210-226)、delete()(335-355) 只做 roleMapper.selectByPrimaryKey(id),无 organization_id 比对(同文件仅 getRoleOptions 第551行做组织过滤),导致跨租户读取角色权限配置、篡改 dataScope/permissions 以及删除角色。
Reproduction steps from the source report:
在自身租户内篡改他租户角色。
1. {'step': 1, 'action': '跨租户读取并篡改角色', 'request': 'GET /role/get/2038192564785152999\nPOST /role/update {"id":"2038192564785152999","name":"销售经理","dataScope":"ALL","permissions":["CUSTOMER_MANAGEMENT:READ"],"deptIds":[]}', 'expected_response': '200 返回他租户角色详情且更新成功,应 403'}
Suggested remediation:
取实体后断言 role.getOrganizationId() 等于当前组织,RoleController#get 传入组织 ID。 |
|---|
| Người dùng | fishrety (UID 102589) |
|---|
| Đệ trình | 30/10/2026 16:50 (cách đây 1 tháng) |
|---|
| Kiểm duyệt | 02/12/2026 09:46 (1 month later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 447623 [1Panel-dev CordysCRM đến 1.9.7 Role Management RoleService.java id nâng cao đặc quyền] |
|---|
| điểm | 17 |
|---|