Description
HUIZHI ChargeOS cloud through 3.0.9 contains an insecure direct object reference vulnerability in the hcp-mp MeController and OrderController that trusts client-supplied userId, openId and orderNumber parameters. Attackers can enumerate sequential member ids against endpoints like /me/getMemberBalanceByUserId and /order/orderDetail to read any member's wallet, credit, profile and charging orders.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| roinli | HUIZHI-ChargeOS-cloud | ≤ 3.0.9 | — |
References
- https://hackmd.io/@hieuPenguinnn/huizhi-chargeos-mp-member-api-userid-idor third-party-advisory
- https://github.com/roinli/HUIZHI-ChargeOS-cloud/blob/1a2cbab79bb7abe7df3b4f9977f5d0e18e65bd4a/hcp-modules/hcp-mp/src/main/java/com/hcp/mp/controller/MeController.java#L40-L91 technical-description
- https://github.com/roinli/HUIZHI-ChargeOS-cloud/blob/1a2cbab79bb7abe7df3b4f9977f5d0e18e65bd4a/hcp-modules/hcp-mp/src/main/java/com/hcp/mp/controller/OrderController.java#L59-L87 technical-description
- VulnCheck Advisory: HUIZHI ChargeOS cloud through 3.0.9 IDOR via hcp-mp Member and Order APIs third-party-advisory