← MCP server and skill grades

ida-pro-mcp

mrexodia/ida-pro-mcp

F
Type
MCP server
Scanned
Nov 13, 2026
Version
13e480cb1198
Files read
209

...Wait! Do NOT output extra text or markdown fences! Let me output ONLY the raw JSON string. Let's make sure the output begins immediately with { and ends with }.{

Findings

1 critical2 high1 medium2 low
  1. CriticalCrafted IDB netnodes can bind the server to 0.0.0.0 and disable browser Origin checks

    src/ida_pro_mcp/ida_mcp.py:235

    Both the IDA GUI plugin and the HTTP handler store and read security-sensitive server settings inside netnodes of the opened .idb/.i64 database itself: ida_mcp.py reads the bind host, port, and autostart flag from '$ ida_mcp.config' and '$ ida_mcp.autostart', while http.py reads cors_policy ('unrestricted' sets Access-Control-Allow-Origin: * and allows Private Network Access) and enabled_tools (including py_eval) from '$ ida_mcp.cors_policy' and '$ ida_mcp.enabled_tools'. Because netnodes are passive data records rather than scripts, simply opening a stranger's .idb or .i64 file in IDA GUI can automatically start an unauthenticated MCP server on 0.0.0.0 with py_eval enabled and unrestricted CORS, letting anyone on the local network or any website the user visits run arbitrary code. Opening such an IDB in idalib-mcp also switches the worker's CORS policy to unrestricted, allowing any visited website to re-enable py_eval via /config and execute code.

    Fix: Store bind host, port, autostart, CORS policy, and enabled-tool settings in user-level machine configuration rather than inside untrusted IDB netnodes.

  2. Highidb_open in force_gui mode executes the target file with the Python interpreter

    src/ida_pro_mcp/ida_mcp/discovery.py:218

    In idalib-mcp (the default server used by the Claude Code, Codex, and Kimi plugins), idb_open is enabled by default while code-execution tools like py_eval are disabled unless --unsafe is passed. However, when idb_open is called with mode='force_gui' and no running GUI already has the file open, idalib_supervisor calls launch_gui_instance, which resolves the IDA executable via _get_ida_executable(). Because idalib_supervisor runs in a normal Python process rather than inside IDA GUI, _get_ida_executable() returns the Python interpreter (/proc/self/exe on Linux or sys.executable on macOS and Windows) and runs subprocess.Popen([ida_exe, target]). If prompt injection in a binary or issue tricks the agent into calling idb_open with mode='force_gui' on a .py script or a polyglot binary with an appended Python zipapp (__main__.py), Python executes that payload directly on the user's machine.

    Fix: Locate the real IDA GUI binary (for example via idadir() or an explicit IDA path) instead of falling back to sys.executable or /proc/self/exe, and refuse to launch if the resolved executable is a Python interpreter.

  3. Highidalib-mcp supervisor forwards tool calls without enforcing --unsafe or --profile on adopted sessions

    src/ida_pro_mcp/idalib_supervisor.py:315

    When idalib-mcp is started without --unsafe or with --profile (such as profiles/readonly.txt), it only passes those restrictions when spawning new worker processes. However, idb_open can adopt an already-running IDA GUI instance (via mode='prefer_gui' or 'force_gui', where py_eval and all mutating tools are on by default) or a pre-existing persistent worker started with --unsafe, and _handle_tools_call forwards any requested tool name straight to the session without checking the supervisor's --unsafe or --profile policy. A prompt-injected agent can adopt a running GUI instance and invoke py_eval to execute arbitrary code despite the supervisor's restrictions.

    Fix: Enforce the supervisor's --unsafe blocklist and --profile whitelist inside _handle_tools_call before forwarding any tool invocation, and disallow adopting GUI instances when restricted.

  4. MediumUnauthenticated /config HTTP endpoint restores unsafe tools and bypasses --unsafe and --profile

    src/ida_pro_mcp/ida_mcp/http.py:441

    When idalib_server imports ida_mcp, http.py captures ORIGINAL_TOOLS (including py_eval, py_exec_file, and debugger tools) before idalib_server removes MCP_UNSAFE tools or applies a --profile whitelist. The worker's HTTP server uses IdaMcpHttpRequestHandler, which exposes an unauthenticated POST /config endpoint and defaults to allowing CORS requests from any localhost port. Any local process or any web application running on localhost (such as a local dev server) can POST to /config on the worker's port to rebuild tools.methods from ORIGINAL_TOOLS, re-enabling py_eval and bypassing both the missing --unsafe flag and any --profile restriction.

    Fix: Remove tools disabled by --unsafe or --profile from ORIGINAL_TOOLS (or disable /config altogether on headless workers), and require an authentication token for /config and /mcp HTTP requests.

  5. LowIDA GUI plugin autostarts an unauthenticated local HTTP server with py_eval enabled by default

    src/ida_pro_mcp/ida_mcp/http.py:37

    Unlike idalib-mcp, which disables MCP_UNSAFE tools unless --unsafe is passed, the IDA GUI plugin (installed via ida-pro-mcp --install) autostarts an HTTP server on 127.0.0.1:13337 whenever IDA opens a file and enables every registered tool by default, including py_eval and py_exec_file. Because the server has no authentication and its default 'local' CORS policy allows requests from any localhost port, any prompt-injected MCP agent, any other local user or process on the computer, or any web app served from localhost can execute arbitrary Python code in IDA's process.

    Fix: Disable MCP_UNSAFE tools (py_eval, py_exec_file, diff_before_after, dbg_*) by default in the GUI plugin unless explicitly enabled by the user, require a random bearer token for HTTP access, and default CORS to 'direct' instead of 'local'.

  6. LowAlways-on IDB tracing saves tool arguments and outputs inside shared database files

    src/ida_pro_mcp/ida_mcp/__init__.py:49

    On import, ida_mcp unconditionally enables tool-call tracing into the '$ ida_mcp.trace' netnode of the open IDB, recording every tool's arguments and structuredContent response with no option to disable it and no mention in the README. When a user saves an .idb or .i64 database and shares it with others, the file silently retains local filesystem paths, session details, and any code or output from py_eval calls.

    Fix: Make IDB netnode tracing opt-in via an explicit flag or environment variable, and document how to inspect or strip '$ ida_mcp.trace' before sharing databases.