Skip to content
New issue

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

[security vulnerability] Arbitrary Order Free Pay #95

Open
GatekeeperBuster opened this issue Dec 13, 2023 · 0 comments
Open

[security vulnerability] Arbitrary Order Free Pay #95

GatekeeperBuster opened this issue Dec 13, 2023 · 0 comments

Comments

@GatekeeperBuster
Copy link

Recently, our team found a vulnerability causing the arbitrary order free pay 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/OrderServiceImpl.java#L314.

屏幕截图 2023-12-13 143357

The developer failed to check the privilege of the accessor when updating status via cn.exrick.manager.mapper.TbThanksMapper.insert(), while the request of path /member/payOrder is also unauthorized (i.e., https://github.com/Exrick/xmall/blob/master/xmall-front-web/src/main/java/cn/exrick/front/controller/OrderController.java#L70), which means an attacker can achieve arbitrary order free pay.
屏幕截图 2023-12-13 143601

To address this vulnerability, we strongly advise that developers implement access control policies that limit API access to admin users or the owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant