[security vulnerability] Arbitrary Coupon Delete Vulnerability
GatekeeperBuster opened this issue · comments
Recently, our team found an arbitrary coupon usage vulnerability in the latest version of the project.
The vulnerability logic is present in the file: https://github.com/newbee-ltd/newbee-mall-plus/blob/main/src/main/java/ltd/newbee/mall/controller/mall/CouponController.java#L67
Unauthorized access to the @DeleteMapping("coupon/{couponUserId}")
API enables attackers to manipulate the query param couponUserId
and delete coupons belonging to other users.
To address this vulnerability, we strongly recommend that developers implement access control policies to ensure that only privileged users or the owner are authorized to perform the delete operation.