Description
FastBee through 2.1.0 contains an insecure direct object reference vulnerability that allows authenticated low-privilege users to access other users' device groups because GroupController queries lack owner checks. Attackers, including self-registered users, can supply sequential group IDs to read, overwrite, reassign, rewrite device associations of, or delete other users' groups.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kerwincui | FastBee | ≤ 2.1.0 | — |
References
- https://hackmd.io/@hieuPenguinnn/fastbee-device-group-cross-user-idor third-party-advisory
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-open-api/src/main/java/com/fastbee/data/controller/GroupController.java#L70-L137 technical-description
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/GroupServiceImpl.java#L37-L143 technical-description
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-service/fastbee-iot-service/src/main/resources/mapper/iot/GroupMapper.xml#L36-L109 technical-description
- VulnCheck Advisory: FastBee through 2.1.0 IDOR via /iot/group By-ID Endpoints third-party-advisory