Recently, our team found an arbitrary product update vulnerability in the latest version of the project.
The vulnerability logic is present in the file:
|
authed.POST("product/update", api.UpdateProductHandler()) |
.
The operation is not protected by permission checks, which means an attacker can achieve arbitrary product update.
To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.
Recently, our team found an arbitrary product update vulnerability in the latest version of the project.
The vulnerability logic is present in the file:
gin-mall/routes/router.go
Line 55 in 755f19a
The operation is not protected by permission checks, which means an attacker can achieve arbitrary product update.
To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.