Description
FastBee through 2.1.0 contains an insecure direct object reference vulnerability in ProductController that allows authenticated tenant users to access other tenants' products by supplying their product IDs. Attackers can enumerate sequential product IDs to read MQTT account, password, and secret values, overwrite product configuration including tenant_id, or delete products with cascading rows.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| beecue | FastBee | ≤ 2.1.0 | — |
References
- GitHub Issue #32 issue-tracking
- https://github.com/kerwincui/FastBee product
- Fix commit patch
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-open-api/src/main/java/com/fastbee/data/controller/ProductController.java#L77-L141 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/ProductServiceImpl.java#L72-L92 technical-description
- https://github.com/kerwincui/FastBee/blob/v2.1.0/springboot/fastbee-service/fastbee-iot-service/src/main/resources/mapper/iot/ProductMapper.xml#L37-L67 technical-description
- VulnCheck Advisory: FastBee through 2.1.0 IDOR via /iot/product By-ID Endpoints third-party-advisory