代码拉取完成,页面将自动刷新
Recently, our team found an arbitrary order delete vulnerability in the latest version of the project.
The vulnerability logic is present in the file:https://gitee.com/tiankong0310/my-shop/blob/master/my-shop-order/src/main/java/com/fengdu/controller/OrderController.java#84.
The operation com.fengdu.dao.OrderDao.deleteBatch()
is not protected by permission checks,
while the request of path /delete
is also unauthorized, which means an attacker can achieve arbitrary order delete.
To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.