代码拉取完成,页面将自动刷新
Recently, our team found an arbitrary order update 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#73.
The operation com.fengdu.dao.OrderDao.update()
is not protected by permission checks,
while the request of path /update
is also unauthorized, which means an attacker can achieve arbitrary order update.
To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.