1.4K Star 11.9K Fork 2.9K

老花生 / Open-Shop

 / 详情

[security vulnerability] Arbitrary AllPrice Update

待办的
创建于  
2023-12-19 15:02

Recently, our team found a vulnerability causing the Arbitrary AllPrice Update in the latest version of the project.

The vulnerability logic is present in the file: https://gitee.com/old-peanut/wechat_applet__open_source/blob/new/platform-api/src/main/java/com/platform/service/ApiOrderService.java#L640.

输入图片说明

The developer failed to check the privilege of the accessor when updating status via com.platform.dao.ApiOrderMapper.queryByAllOrderId(), while the request of path prepay is also unauthorized (i.e., https://gitee.com/old-peanut/wechat_applet__open_source/blob/new/platform-api/src/main/java/com/platform/api/ApiPayController.java#L69), which means an attacker can achieve Arbitrary AllPrice Update.

输入图片说明

To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.

评论 (0)

GatekeeperBuster 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/old-peanut/wechat_applet__open_source.git
git@gitee.com:old-peanut/wechat_applet__open_source.git
old-peanut
wechat_applet__open_source
Open-Shop

搜索帮助