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

JEEWMS issue3: `updateDataRule` 可改写角色数据规则

Vulnerability call chain

1.1 Summary

JEEWMS has a missing authorization vulnerability: updateDataRule 可改写角色数据规则. 可扩大、清空或替换角色在某功能下的数据权限规则,影响后续数据过滤范围。

  • Attack precondition: 攻击者能访问 roleController.do?updateDataRule。源码层面未证明该入口仅系统管理员可访问。
  • Security impact: 可扩大、清空或替换角色在某功能下的数据权限规则,影响后续数据过滤范围。

1.2 Exploit path

提交任意 roleIdfunctionIddataRulecodes,修改对应 TSRoleFunction.dataRule

1.3 Key code evidence

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

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

  872  	 * @param request873  	 * @return874  	 */875  	@RequestMapping(params = "updateDataRule")876  	@ResponseBody877  	public AjaxJson updateDataRule(HttpServletRequest request) {878  		AjaxJson j = new AjaxJson();
  1. security-reports/pure_fix_code/src/main/java/org/jeecgframework/web/system/controller/core/RoleController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/security-reports/pure_fix_code/src/main/java/org/jeecgframework/web/system/controller/core/RoleController.java#L879

  876  	 * @param roleId877  	 * @return878  	 */879  	@RequestMapping(params = "dataRuleListForFunction")880  	public ModelAndView dataRuleListForFunction(HttpServletRequest request,881  			String functionId, String roleId) {882  		CriteriaQuery cq = new CriteriaQuery(TSDataRule.class);883  		cq.eq("TSFunction.id", functionId);884  		cq.add();885  		List<TSDataRule> dataRuleList = this.systemService886  				.getListByCriteriaQuery(cq, false);887  		Set<String> dataRulecodes = systemService888  				.getOperationCodesByRoleIdAndruleDataId(roleId, functionId);
  1. security-reports/pure_fix_code/src/main/java/org/jeecgframework/web/system/controller/core/RoleController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/security-reports/pure_fix_code/src/main/java/org/jeecgframework/web/system/controller/core/RoleController.java#L890

  887  		Set<String> dataRulecodes = systemService888  				.getOperationCodesByRoleIdAndruleDataId(roleId, functionId);889  		request.setAttribute("dataRuleList", dataRuleList);890  		request.setAttribute("dataRulecodes", dataRulecodes);891  		request.setAttribute("functionId", functionId);892  		return new ModelAndView("system/role/dataRuleListForFunction");893  	}894  	895  	896  	/**897  	 * 更新按钮权限898  	 * 
  1. security-reports/pure_fix_code/src/main/java/org/jeecgframework/web/system/controller/core/RoleController.java

Evidence location: https://gitee.com/erzhongxmu/JEEWMS/blob/master/security-reports/pure_fix_code/src/main/java/org/jeecgframework/web/system/controller/core/RoleController.java#L897

  894  	895  	896  	/**897  	 * 更新按钮权限898  	 * 899  	 * @param request900  	 * @return901  	 */902  	@RequestMapping(params = "updateDataRule")

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.gsyq.cn/news/1547737.html

相关文章:

  • 2026锡林郭勒盟焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • SSRF 302跳转
  • 2026乌鲁木齐焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 5年,一个程序员是如何把私有化在线客服系统做到第一名的
  • 计算机毕业设计之办公耗材管理系统
  • 2026延安焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • RuoYi issue4: Unauthorized Role Assignment Deletion
  • 2026 年人来灯亮智能开关推荐:优智者感应灵敏 - 思溯深度专栏
  • 用过才敢说!2026年最值得用的专业AI论文平台
  • 2026内江焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • hu
  • 2026黔南焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • Hermes Agent Skill Runtime 架构拆解:让 AI Agent 不再从零开始
  • 终极免费浏览器AI图像标注工具:make-sense.ai完全指南
  • 2026随州焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 基于MOBI文件解析的Kindle封面元数据修复技术
  • 拉萨市空调维修/中央空调维修|本地避坑指南,满分五星平台|欧米到家首选 - 欧米到家
  • 2026柳州焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 2026内蒙古焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 授权委托书公证办理周期大概多久?授权委托书公证不用本人到场能操作吗?
  • TPU2协处理器:嵌入式实时系统定时任务的硬件化解决方案
  • 2026六安焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 2026连云港焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 数字员工是什么?熊猫智汇在AI销售工具中的作用与价值是什么?
  • 2026韶关焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • 2026年 武汉GEO优化服务商推荐榜:精准推广/全域运营/流量优化与排名提升的深度解析 - 品牌发掘
  • 2026年国内激光砍树设备品牌实力排行盘点 - 起跑123
  • 2026黔西焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团
  • [PWNHUB 公开赛 2018]傻 fufu 的工作日
  • 2026开封焊缝探伤检测权威机构排行 TOP 本地高频选择,无损检测 + UT+RT+PT 检测 附电话地址 - 中安检测集团