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.
收到
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Sign in to comment