1.4K Star 11.9K Fork 2.9K

老花生 / Open-Shop

 / 详情

[security vulnerability] Free Payment of Orders

待办的
创建于  
2023-06-30 14:23

Recently, our team found a vulnerability causing the free payment of orders 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/api/ApiOrderController.java#L133

输入图片说明

The API endpoint /api/order/updateSuccess is protected by AuthorizationInterceptor (located at: https://gitee.com/old-peanut/wechat_applet__open_source/blob/new/platform-api/src/main/java/com/platform/interceptor/AuthorizationInterceptor.java) which only checks the login status of the user.
However, there is no verification of the user's privilege level when updating the order status via orderService.update(). Consequently, any logged-in user can access this API and change the payment status of unpaid orders (identified by orderId) to achieve free payment.

To address this vulnerability, we recommend that developers implement access control policies to restrict the modification of order status to privileged users only.

评论 (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

搜索帮助