Description
Xiaozhi-esp32-server before 0.9.8 contains an insecure direct object reference vulnerability in the manager-api DeviceController.getAddressBook handler that allows authenticated users to read other users' device address books. Attackers with a normal or self-registered account can request /device/address-book/{macAddress} with another user's device MAC to obtain contact MACs, aliases, call permissions, and owner user IDs.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
xinnan-tech xiaozhi-esp32-server
Default version status: unaffected
0 to < 0.9.8affected
pkg:github/xinnan-tech/xiaozhi-esp32-serverReferences
- https://github.com/xinnan-tech/xiaozhi-esp32-server/issues/3459 ↗
- https://github.com/xinnan-tech/xiaozhi-esp32-server/pull/3460 ↗
- https://github.com/xinnan-tech/xiaozhi-esp32-server/commit/d4ff9c5c17cbd82ec98a2a6bb4f82a07c1be0f03 ↗
- https://github.com/xinnan-tech/xiaozhi-esp32-server/releases/tag/v0.9.8 ↗
- https://github.com/xinnan-tech/xiaozhi-esp32-server/blob/v0.9.7/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java#L173-L178 ↗
- https://github.com/xinnan-tech/xiaozhi-esp32-server/blob/v0.9.7/main/manager-api/src/main/resources/mapper/device/DeviceAddressBookDao.xml#L5-L10 ↗
- https://hackmd.io/@hieuPenguinnn/xiaozhi-esp32-server-address-book-idor ↗
- https://www.vulncheck.com/advisories/xiaozhi-esp32-server-before-0.9.8-idor-via-device-address-book-endpoint ↗