Summary
DreameHome's cloud API had an authorization flaw in its camera-binding endpoint that could let an authenticated user reassign a camera belonging to someone else to their own account. If the attacker knows the camera's identifiers, the owner may lose access to the device through DreameHome.
Affected context
The issue concerns the DreameHome cloud API's POST /smart-app/meari-cloud/bindDevice endpoint. It affects API behavior where a binding request can be accepted without verifying that the authenticated account is authorized to manage the specified camera. The described vulnerable API behavior was present before 2026-11-19.
Exploit preconditions
- Attack surface: The DreameHome cloud API's camera-binding endpoint
- Required access: An authenticated DreameHome account and knowledge of the target camera's identifiers
- Trigger point: A binding request to
POST /smart-app/meari-cloud/bindDevice - Why exploitation is possible: The endpoint accepts a request from an account that does not own the camera, allowing the supplied user identity to become its master account.
Why this happens
The endpoint fails to enforce object-level authorization for the camera being bound. It accepts a user-supplied camera identifier and changes the camera's account association without confirming that the authenticated user owns the camera or is otherwise authorized to manage it. This is an insecure direct object reference and maps to CWE-639: Authorization Bypass Through User-Controlled Key.
Potential impact
- An attacker could reassign another user's camera to their own account.
- The legitimate owner may lose access to the camera through DreameHome.
- The attacker may gain control or access to camera functions available to the newly associated account.
- Repeated or targeted reassignment could disrupt users' access to their devices.
General mitigation guidance
Defensive patterns focus on validating authorization for each requested camera, rather than trusting identifiers or identity values supplied in a request.
- Derive the acting user identity from the authenticated session, not a caller-controlled field.
- Verify that the authenticated user owns the camera or has an explicitly authorized role before changing its association.
- Apply authorization checks consistently to binding, unbinding, and other device-management operations.
- Use secure-by-default access controls and least privilege for account and device-management functions.
- Keep authorization checks close to the state change and make reassignment operations resistant to race conditions.
How teams detect issues like this
- Review device-management handlers for object lookups using request-supplied identifiers without an ownership or authorization check.
- Use static analysis or code review rules to flag account or device association changes that trust caller-supplied identity fields.
- Test authorization policies by verifying that one account cannot bind, unbind, or modify another account's devices.
- Monitor audit logs for camera ownership changes that lack an expected owner-initiated or authorized administrative action.
- Enforce API policies requiring authenticated identity and object-level authorization for device mutations.

