← MCP server and skill grades

axuse

ctoldigital/axuse

F
Type
Skill
Scanned
Nov 17, 2026
Version
c7f2fa4c5ef0
Files read
173

axuse is an MCP server and toolkit that lets AI agents control web browsers (including your signed-in Chrome or Edge via an extension), desktop apps on Windows, macOS, and Linux, and Android phones via accessibility trees. Its biggest risks are an unauthenticated loopback server in the Android app that lets websites or other phone apps hijack full phone control, and MCP tool flaws that let a prompt-injected agent run arbitrary programs via ax_open's executable_path or run shell commands on macOS via JXA code injection.

What it can reach

Browser
Launches and controls Chrome, Edge, or Chromium over the DevTools Protocol (reading pages, clicking, typing, running page JavaScript, and taking screenshots), and automatically uses your signed-in daily Chrome or Edge profile when the axuse bridge extension is connected.
Files
Reads local files and directory listings via file:// URLs in the browser, uploads local files to web forms via ax_upload, writes browser profile and bridge state files, and can download Chrome for Testing into ~/.cache/axuse.
System
Takes desktop screenshots, lists and focuses windows, reads native OS accessibility trees, and sends mouse clicks and keystrokes on Windows, Linux (X11/AT-SPI), and macOS (when AXUSE_ENABLE_MACOS_CUA=1 is set), plus full screen reading and touch/text control on Android phones via axdroid.
Shell commands
Spawns browser binaries (or any path passed to executable_path), resident PowerShell on Windows, osascript/screencapture/sips on macOS, Xvfb/xclip on Linux, and adb for Android setup.
Network
Visits arbitrary URLs, routes browser traffic through user-specified proxies, opens local listeners for the browser extension hub and Android bridge, and optionally runs LAN or internet-facing HTTP/TCP servers in axdroid.
Secrets
Can interact with active cookies and logged-in accounts in your daily browser when the extension bridge is active, reads or replaces the clipboard on Linux and Android, and stores local bridge and relay tokens on disk.

Findings

1 critical1 high6 medium4 low
  1. CriticalAndroid on-device RPC server exempts loopback from auth and lacks Origin checks

    phone-use/android/app/src/com/axuse/axdroid/RpcServer.java:216

    The axdroid Android app starts an HTTP server on 127.0.0.1:8360 by default (and exposes it on the computer's 127.0.0.1:8360 during standard adb forward USB use) that skips token authentication for all loopback connections and never checks Origin or Content-Type headers. On Android, every installed app with basic INTERNET permission shares 127.0.0.1 and can directly read the screen, read the clipboard, and control any app on the phone. Worse, a malicious webpage visited in a browser without loopback blocks can send a blind cross-site POST to http://127.0.0.1:8360/rpc calling relay_set and policy_set, forcing the phone to dial out to an attacker's relay server and hand over full remote phone control.

    Fix: Require the pairing token on all loopback requests as well as LAN requests, reject requests that include an Origin or Sec-Fetch-Site header, require Content-Type: application/json, and require physical in-app confirmation on the phone before changing relay_set or policy_set.

  2. HighBrowser open tools let a prompt-injected agent execute arbitrary local binaries

    src/core/cdp.js:531

    The ax_open and ax_open_many MCP tools expose executable_path directly as a tool argument that the AI agent can set on any call. When an agent is tricked by prompt injection on a webpage it is reading, it can call ax_open with executable_path pointing to any program or script on the user's computer (along with a distinct timezone or profile_dir to force a new launch), and BrowserHandle.launch passes that path straight to spawn() without checking that it is a legitimate browser.

    Fix: Remove executable_path (and arbitrary profile_dir paths) from the model-facing MCP tool schemas in src/core/commands.js so the browser binary can only be configured by the user through the trusted AXUSE_BROWSER environment variable.

  3. MediumJXA code injection in macOS desktop AX tools via placeholder collision

    src/desktop/macos.js:447

    When macOS desktop control is enabled (AXUSE_ENABLE_MACOS_CUA=1), axScript() builds JavaScript for Automation (JXA) code by running sequential split/join replacements over the script string: __WANT_NAME__ is filled first, and __VALUE__ is filled later with JSON.stringify(value). If a prompt-injected agent calls ax_desktop_ax_set with name set to "__VALUE__" and value containing JXA code such as " + (ObjC.import('stdlib'), $.system('...')) + ", the second replacement breaks out of the wantName string literal and executes arbitrary shell commands via osascript—even if macOS Accessibility TCC permission was denied.

    Fix: Replace all placeholders in a single regex pass (such as template.replace(/__(WANT_PID|WANT_NAME|WANT_FRONT|PATH|VALUE|MAX_NODES|MAX_DEPTH)__/g, ...)) or pass parameters via argv/environment variables to osascript instead of interpolating code templates.

  4. MediumRead-only OAuth scope (phone:read) is not enforced on the Android cloud relay path

    phone-use/android/app/src/com/axuse/axdroid/RelayTunnel.java:205

    The documentation states that read-only OAuth approvals (phone:read) can observe the phone but cannot act, and that scopes are enforced again on the phone itself. However, Relay._proxy in relay.py only checks that a token has either phone:read or phone:act before forwarding the request, and RelayTunnel.java on the Android phone drops the frame's scopes array completely when calling svc.mcp().handle(). As a result, a remote client or prompt-injected agent granted only read-only phone:read access can still execute phone_tap, phone_type, phone_swipe, and phone_run to control the device.

    Fix: Enforce phone:act vs phone:read both in Relay._proxy (relay.py) and inside RelayTunnel.java / Mcp.java by rejecting non-read-only tools when phone:act is absent from the frame's scopes.

  5. MediumHost HTTP MCP server (axdroid serve --listen) has no auth by default and no Origin check

    phone-use/android/axdroid/mcp.py:314

    When starting the Python MCP server in HTTP mode with axdroid serve --listen host:port, the --token flag is optional and defaults to None. Without a token, serve_http accepts unauthenticated MCP tool calls from anyone who can reach the port (the entire network when bound to 0.0.0.0, or any website visited in a browser via cross-origin POST when bound to 127.0.0.1 because Origin and Content-Type headers are not checked).

    Fix: Require --token (or auto-generate and print a random bearer token) whenever --listen is used, and reject requests that carry untrusted Origin headers.

  6. MediumLinux server mode launches Xvfb with -ac, exposing the virtual display to all local users

    src/core/vdisplay.js:342

    On Linux machines without an active X display, axuse automatically boots Xvfb in server mode and passes -ac, which disables all X11 access control. Although -nolisten tcp blocks remote TCP connections, the local Unix socket /tmp/.X11-unix/X<N> remains open to every local user or container sharing /tmp/.X11-unix on that server, allowing other local users to capture screenshots of Chrome and inject mouse clicks or keystrokes into the browser session.

    Fix: Create an owner-only (mode 0600) Xauthority cookie file for the virtual display, pass -auth <file> to Xvfb instead of -ac, and set XAUTHORITY in the child environment.

  7. MediumLinux server mode enables Chrome's unsafe SwiftShader JIT alongside automatic root no-sandbox

    src/core/cdp.js:453

    When running in server mode on a display-less Linux host, BrowserHandle.launch automatically passes --enable-unsafe-swiftshader to Chrome (and automatically adds --no-sandbox when running as root, such as inside containers). Chrome disabled automatic SwiftShader WebGL in version 139 because its JIT compiler has known security weaknesses when rendering untrusted WebGL shaders; re-enabling it by default—especially without a sandbox—exposes the host or container to browser renderer/GPU compromise simply from loading a malicious webpage.

    Fix: Do not pass --enable-unsafe-swiftshader by default; gate it behind an explicit opt-in environment variable with a clear security warning, and avoid combining it with --no-sandbox.

  8. MediumAndroid consequential-action Guard trusts agent-supplied confirm flag and skips swipe taps

    phone-use/android/app/src/com/axuse/axdroid/Guard.java:78

    The Android README describes Guard as an on-device owner control outranking every agent for payment, send, delete, and permission buttons. In code, however, confirm:true is merely a boolean parameter supplied by the agent itself with no prompt shown to the phone's owner, and phone_swipe (Core.java op:"swipe") dispatches raw touch strokes with no Guard check at all—allowing a prompt-injected agent to tap any sensitive button either by passing confirm:true or by issuing a zero-distance swipe.

    Fix: Require an on-device confirmation prompt (notification or overlay button tapped by the phone owner) before allowing Guard-flagged actions, and apply Guard/occlusion checks to short-distance swipe gestures.

  9. LowUnauthenticated SSRF in axdroid relay via Client ID Metadata Document fetching

    phone-use/android/axdroid/relay.py:430

    When axdroid relay is running (bound to 0.0.0.0:8080 by default), any unauthenticated caller can request GET /authorize with an arbitrary https:// URL as client_id (a route that is also exempt from the POST-only rate limiter). Relay.fetch_client_metadata fetches that URL using Python's urllib.request.urlopen, which resolves internal/private IPs and automatically follows HTTP 301/302 redirects to plaintext http://127.0.0.1, LAN hosts, or cloud metadata services (169.254.169.254).

    Fix: Disable automatic redirect following in urllib, resolve and block loopback, link-local, and private IP ranges before connecting, and apply rate limiting to GET /authorize.

  10. LowAndroid cloud relay tunnel defaults to unencrypted plaintext TCP

    phone-use/android/app/src/com/axuse/axdroid/PolicyStore.java:134

    Both the Android app (relay_tls in PolicyStore.java) and the Python CLI (--relay-tls in cli.py) default to plaintext TCP rather than TLS when dialing out to a cloud relay, and the README's relay_set example for relay.example.com omits tls:true. While the initial tunnel handshake hashes the secret, all subsequent tunnel traffic—including phone screen contents, typed text, one-time OAuth link codes, and MCP commands—is sent in cleartext without per-frame authentication, allowing an on-path network attacker to eavesdrop or inject commands.

    Fix: Default relay_tls and --relay-tls to true for all non-loopback relay hosts, and require an explicit insecure flag for plaintext local testing.

  11. LowLaunched browsers open a localhost TCP port with --remote-allow-origins=*

    src/core/cdp.js:425

    BrowserHandle.launch starts Chrome with --remote-debugging-port=0 and --remote-allow-origins=* (and SKILL.md advises relaunching daily Chrome with --remote-debugging-port=9222 --remote-allow-origins=*). On multi-user systems, any local user can discover the localhost port and attach to Chrome's unauthenticated CDP endpoint to read cookies or local files, and --remote-allow-origins=* disables Chrome's WebSocket Origin protection if a webpage learns a target WebSocket path.

    Fix: Use --remote-debugging-pipe when spawning Chrome from Node.js so no TCP port is opened, and remove --remote-allow-origins=* from both launch arguments and documentation.

  12. LowDocumentation instructs pasting live remote install prompts into coding agents

    README.md:31

    The README and phone-use docs instruct users to install the software by telling their AI coding agent to fetch and follow https://ax-use.com/install.md or https://ax-use.com/install-phone.md. Because those remote instructions are unpinned and interpreted by an agent with local shell access, a compromise or change on ax-use.com could steer the agent into running arbitrary commands during installation.

    Fix: Provide self-contained, version-pinned installation commands in the repository rather than directing agents to execute live remote markdown prompts.