Summary
OpenRemote's device provisioning handler may authenticate an anonymous MQTT connection as a provisioned device without verifying possession of that device's private key. An attacker who knows the device's public certificate may be able to impersonate its service account and read or modify assets.
Affected context
The issue is in OpenRemote core's UserAssetProvisioningMQTTHandler provisioning flow. It becomes risky when an unauthenticated MQTT client can publish to the provisioning request topic and the handler accepts a known device's public certificate without requiring proof of private key possession. The described affected releases are those before 1.34.0.
Exploit preconditions
- Attack surface: The MQTT device-provisioning request topic
- Required access: Ability to connect anonymously and publish to that topic
- Trigger point: The handler processes a provisioning request containing a known device's public certificate
- Why exploitation is possible: The flow does not verify that the requester possesses the corresponding private key before authenticating it as the device's service account
Why this happens
The authentication flow treats knowledge or presentation of a device's public certificate as sufficient evidence of identity. Because it does not require cryptographic proof of possession of the corresponding private key, an unauthenticated requester may be accepted as the device. This is an authentication bypass mapped to CWE-287: Improper Authentication.
Potential impact
- An attacker could impersonate a provisioned device's service account.
- The impersonated account may be able to read or modify associated assets.
- Unauthorized asset changes could affect device data or operational workflows.
- The incident may undermine confidence in device identity and provisioning controls.
General mitigation guidance
Defensive patterns focus on verifying device identity with cryptographic proof rather than relying on a presented public certificate alone.
- Require proof of possession of the private key during provisioning or authentication.
- Bind provisioning requests to authenticated, authorized identities and validate the expected device-to-account relationship.
- Restrict anonymous MQTT publishing to provisioning topics and apply least-privilege permissions to service accounts.
- Use secure-by-default topic access policies and minimize the assets each device account can access or modify.
- Treat device identifiers and public certificates as identifiers, not as secrets or authentication factors.
How teams detect issues like this
Review provisioning code and MQTT broker policies for paths where anonymous clients can publish requests that establish device identity.
- Use static analysis and code review to find authentication decisions based solely on public identifiers or certificates without proof of private-key possession.
- Monitor for anonymous provisioning requests, unexpected device-to-account associations, and asset operations from newly established sessions.
- Enforce policy checks that provisioning topics require authenticated publishers and that device accounts have narrowly scoped permissions.

