DEV Community

jeffrey
jeffrey

Posted on

AutoCua's Telegram control channel needed an explicit owner

AutoCua's Telegram control channel needed an explicit owner

ComputerUseAgent AutoCua is a desktop automation tool. Its Telegram remote-control service turns a chat message into a command on a computer. CVE-2026-138286 describes an improper-authentication flaw in the _is_owner_chat function of that service, affecting AutoCua through version 0.1.9. The public CVE record gives it a CVSS score of 10.0 Critical.

The issue is not a generic Telegram bug. It is a missing pairing decision inside the application. The upstream fix commit explains the old behavior: the bot could give control to the first chat that messaged it, or at startup to the chat associated with the latest waiting update. That means the application's owner was defined by whoever reached the bot first, not by a local, intentional pairing step.

The patched design creates a one-time code shown on the PC. A new private chat must send that code before it becomes the owner. Groups, channels, edits and business messages never pair or reach the text handler. The owner must be a positive ID for a private chat. Disconnect clears the token, owner and code, and queued tasks stop. The same change is applied across the macOS, Linux and Windows copies.

For current installations, update beyond the affected 0.1.9 range and verify the patch behavior directly. Confirm that no owner is saved initially, that connect generates a fresh code, that a group message cannot pair, and that disconnect removes the saved owner. Rotate the Telegram bot token if an unknown chat may have controlled the service. Review the host for commands, screen actions, file access, browser sessions, and credential exposure initiated from Telegram.

Endpoint controls matter because the tool operates with the logged-in user's desktop authority. Run it under a dedicated account where possible, limit access to sensitive applications, and keep the bot token in a protected store. Monitor Telegram network connections and local process creation together. A process event without the initiating chat message is incomplete evidence.

The patch commit also improves atomic writes for the API key file, but that is a reliability change rather than the authentication fix. Do not merge the two issues in an incident report. The security question is who could pair with the bot and issue commands. The durability question is whether a crash or concurrent settings save could corrupt the key file.

Remote-control convenience needs an explicit trust ceremony. A bot handle, token, or first-message rule is not an owner model. The owner identity must be established on the controlled machine and verified before any command is accepted.

References

Top comments (0)