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 coupon obtain #50

Open
GatekeeperBuster opened this issue Jan 5, 2024 · 0 comments
Open

[security vulnerability] arbitrary coupon obtain #50

GatekeeperBuster opened this issue Jan 5, 2024 · 0 comments

Comments

@GatekeeperBuster
Copy link

Recently, our team found an arbitrary coupon obtain 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#57.

image

The operation ltd.newbee.mall.dao.NewBeeMallCouponMapper.reduceCouponTotal() is not protected by permission checks,
while the request of path is also unauthorized, which means an attacker can achieve arbitrary coupon obtain.

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