| 标题 | JeecgBoot 3.9.1 Improper Access Controls |
|---|
| 描述 | The PUT /sys/selectDepart endpoint binds a full SysUser entity from the request body and directly persists the client-supplied orgCode and loginTenantId to the database without any server-side validation—no permission annotation,no department membership check, no tenant ownership verification. Any authenticated user, including those with only the default test role, can set these fields to arbitrary values, effectively switching their session context to any department or tenant in the system. When chained with the userEdit self-escalation, an attacker who switches into a target department's context and elevates their userIdentity to 2 with departIds pointed at that department can then query its complete member list via departUserList, gaining visibility into organizational data they have nolegitimate access to. The impact is that the department and tenant boundaries—JeecgBoot's primary data isolation mechanism—can be crossed at will by any logged-in user in two requests, with no administrative privileges required. |
|---|
| 来源 | ⚠️ https://github.com/jeecgboot/JeecgBoot/issues/9597 |
|---|
| 用户 | AliceS614 (UID 94277) |
|---|
| 提交 | 2026-05-02 11時40分 (1 月前) |
|---|
| 管理 | 2026-05-26 14時50分 (24 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 365636 [JeecgBoot 直到 3.9.1 /sys/selectDepart LoginController.selectDepart 权限提升] |
|---|
| 积分 | 20 |
|---|