Description
FastBee through 2.1.0 contains an insecure direct object reference vulnerability in DeviceController that allows authenticated low-privilege users to read and modify other tenants' devices by supplying sequential device IDs. Self-registered attackers can enumerate deviceId or serialNumber values to read owner, IP, and location data, and overwrite user_id and tenant_id to take over devices.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kerwincui | FastBee | ≤ 2.1.0 | — |
References
- https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/fastbee-device-ownership-idor third-party-advisory
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DeviceServiceImpl.java#L105-L125 technical-description
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-open-api/src/main/java/com/fastbee/data/controller/DeviceController.java#L119-L211 technical-description
- https://github.com/kerwincui/FastBee/blob/v1.2.1/springboot/wumei-iot/src/main/java/com/ruoyi/iot/controller/DeviceController.java#L118-L213 technical-description
- VulnCheck Advisory: FastBee through 2.1.0 IDOR via DeviceController /iot/device Endpoints third-party-advisory