当前位置: 首页 > news >正文

JEEWMS issue1: `saveUser` 可重建用户角色和组织绑定

Vulnerability call chain

1.1 Summary

JEEWMS has a missing authorization vulnerability: saveUser 可重建用户角色和组织绑定. 可将任意用户加入更高权限角色或跨组织绑定,改变系统后续菜单、接口、数据权限判断结果。

  • Attack precondition: 攻击者能访问 userController.do?saveUser。不要求攻击者已拥有目标角色或目标组织的管理权限。
  • Security impact: 可将任意用户加入更高权限角色或跨组织绑定,改变系统后续菜单、接口、数据权限判断结果。

1.2 Exploit path

请求中提交目标用户 idroleidorgIds 等参数,触发用户更新逻辑删除旧绑定并重建用户-角色、用户-组织关系。

1.3 Key code evidence

  1. src/main/java/org/jeecgframework/web/system/controller/core/UserController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/src/main/java/org/jeecgframework/web/system/controller/core/UserController.java#L581

  578       * @return579       */580  581      @RequestMapping(params = "saveUser")582      @ResponseBody583      public AjaxJson saveUser(HttpServletRequest req, TSUser user) {584          String message = null;
  1. jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java#L587
3. jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java#L595
4. jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java#L643
5. jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/jeewms-cloud/java/base-cloud-module/base-cloud-xxljob/src/main/java/com/xxl/job/admin/controller/UserController.java#L664

3. Root Cause Analysis

Root Cause 1: Missing server-side authorization on the vulnerable operation.

The endpoint accepts user-controlled authorization-sensitive identifiers or fields, but the write/read path does not prove that the current caller may operate on the target object.

Root Cause 2: Missing object-scope or grant-bound validation.

The implementation relies on endpoint access, UI filtering, or object existence checks instead of enforcing target ownership, tenant boundary, role ceiling, or grantable-resource constraints at the service layer.

在保存前校验当前用户是否可管理目标用户、目标组织和目标角色;禁止授予高于当前用户权限上界的角色;服务端忽略或白名单化敏感关系字段。

5. Verification after fix

  • Unauthorized callers receive HTTP 403 or equivalent rejection.
  • Out-of-scope target identifiers are rejected before database writes or sensitive reads.
  • Role, permission, tenant, organization, ownership, or grant-bound ceilings are enforced server-side.
  • Direct HTTP requests are rejected even when front-end controls are hidden.
http://www.jsqmd.com/news/1035873/

相关文章:

  • 2026西宁焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 2026年移动拖车发电机组工厂推荐:静音节能与应急供电的实力之选 - 品牌发掘
  • 2026 AIGC 全球挑战赛收官:131 组作品角逐,为北京数字经济发展注入新动能!
  • B站缓存视频容器格式转换技术实现:m4s-converter架构解析与应用指南
  • 模型量化:从 FP16 到 INT4,怎么平衡精度和速度
  • 如何在5分钟内完成专业级虚拟背景设置:OBS背景移除插件终极指南
  • ZigBee网络配置实战:从ZPS工具到休眠设备通信避坑
  • 2026实力之选:泰州阳光发电设备有限公司——沃尔沃发电机组供应商的可靠动力之源 - 品牌发掘
  • 吴忠市空调维修/中央空调维修|本地避坑指南,满分五星平台|欧米到家首选 - 欧米到家
  • 实战指南:3步部署Qwen2-7B-Instruct,解锁企业级AI助手核心功能
  • 2026宿州焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 2026烟台焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 音频表示学习中的组合性评估与实践
  • RuoYi issue2: Role Data Scope Escalation
  • 终极指南:5分钟快速掌握OBS背景移除插件的完整教程
  • 终极指南:如何让旧Mac免费升级到最新macOS系统(OpenCore Legacy Patcher完整教程)
  • 名表维修渠道乱象调查:亨得利官方发布2026服务渠道识别严正声明 - 亨得利官方维修中心
  • JEEWMS issue2: `updateAuthority` 可改写角色功能权限
  • Linux进程创建实验详解:从fork()原理到实践应用
  • 山南市空调维修/中央空调维修|本地避坑指南,满分五星平台|欧米到家首选 - 欧米到家
  • 2026乌兰察布焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 如何选择北京企业纠纷律所?2026年6月推荐十大排名评测专业价格注意事项案例 - 品牌推荐
  • 2026新疆焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • json模块:序列化反序列化、中文乱码、json文件读写实战
  • 如何快速获取网盘直链:2025年最新下载方案终极指南
  • 2026年 泰州水泵发电机组实力厂家:稳定高效与节能降噪技术解析及选购指南 - 品牌发掘
  • RuoYi issue3: Unauthorized Role Assignment To Users
  • 终极Windows热键冲突检测指南:Hotkey Detective让键盘快捷键重获新生
  • 2026西双版纳焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 2026山西焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团