570 Star 2K Fork 1.1K

tiankong0310 / my-shop

 / 详情

[security vulnerability] Arbitrary Address Deletion Vulnerability

Backlog
Opened this issue  
2023-06-30 15:06

Recently, our team found an arbitrary address deletion 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-api/src/main/java/com/fengdu/api/ApiAddressController.java#L90

输入图片说明

Due to the absence of a verification process for the ownership of the address id before deleting address details via addressService.delete(), attackers can delete addresses belonging to any user.

To fix this vulnerability, we strongly recommend that developers implement access control policies to restrict API access to admin users or the address owners. This will help prevent the unauthorized deletion of addresses.

Comments (1)

GatekeeperBuster created任务

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
1951565 tiankong0310 1578963007
Java
1
https://gitee.com/tiankong0310/my-shop.git
git@gitee.com:tiankong0310/my-shop.git
tiankong0310
my-shop
my-shop

Search