Description
rustdesk-api through 2.7 contains an authorization bypass vulnerability that allows unauthenticated attackers to overwrite existing peer records by supplying only a target device ID to POST /api/sysinfo. Attackers can overwrite hostname, username, OS and uuid without uuid verification, then log in presenting that uuid to rebind the peer to their account.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| lejianwen | rustdesk-api | ≤ 2.7 | — |
References
- https://hackmd.io/@hieuPenguinnn/rustdesk-api-sysinfo-unauth-peer-tamper third-party-advisory
- https://github.com/lejianwen/rustdesk-api/blob/v2.7/http/router/api.go#L60-L76 technical-description
- https://github.com/lejianwen/rustdesk-api/blob/v2.7/http/controller/api/peer.go#L26-L57 technical-description
- https://github.com/lejianwen/rustdesk-api product
- VulnCheck Advisory: rustdesk-api through 2.7 Authorization Bypass via POST /api/sysinfo third-party-advisory