We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recently, our team found a vulnerability causing the arbitrary address addition in the latest version of the project.
The vulnerability logic is present in the file: https://github.com/Exrick/xmall/blob/master/xmall-sso/xmall-sso-service/src/main/java/cn/exrick/sso/service/impl/AddressServiceImpl.java#L61
The developer failed to check the privilege of the accessor when updating status via cn.exrick.manager.mapper.TbAddressMapper.insert(), while the request of path /member/addAddress is also unauthorized (i.e., https://github.com/Exrick/xmall/blob/master/xmall-front-web/src/main/java/cn/exrick/front/controller/AddressController.java#L45), which means an attacker can achieve arbitrary address addition .
cn.exrick.manager.mapper.TbAddressMapper.insert()
/member/addAddress
To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Recently, our team found a vulnerability causing the arbitrary address addition in the latest version of the project.
The vulnerability logic is present in the file: https://github.com/Exrick/xmall/blob/master/xmall-sso/xmall-sso-service/src/main/java/cn/exrick/sso/service/impl/AddressServiceImpl.java#L61
The developer failed to check the privilege of the accessor when updating status via
cn.exrick.manager.mapper.TbAddressMapper.insert()
, while the request of path/member/addAddress
is also unauthorized (i.e., https://github.com/Exrick/xmall/blob/master/xmall-front-web/src/main/java/cn/exrick/front/controller/AddressController.java#L45), which means an attacker can achieve arbitrary address addition .To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.
The text was updated successfully, but these errors were encountered: