Analysis · DiggingBeagle record

The path was allowed. The object was different by the time the agent used it.

Four independent disclosures expose failures between an initial location check and the file, network address or repository object eventually touched.

Published
Nov 21, 2026

Overview

A repository path, web address or file handle can pass an agent's safety check and still become the wrong target when the tool performs the operation. Four recent research dossiers demonstrate distinct reasons why. In the filesystem MCP case, a symlink changes after the boundary check. In Flyto, a server supplies a second URL or DNS supplies a second address. In Git MCP, a crafted index can change which file a read operation opens, while repository configuration can make a later step execute a program. The unifying issue is not that an agent misunderstood an instruction. The enforcement decision was made about a representation that did not remain authoritative for the subsequent operation.

The check and the effect were not bound together

Case What the guard inspected What could actually happen Additional prerequisite
Filesystem MCP symlink race A path resolved within allowedDirectories A replaced symlink caused listing outside that directory Local link replacement during the check/use interval
Flyto DNS change The first permitted DNS answer The HTTP library re-resolved and connected to a protected address Attacker-influenced DNS plus reachable internal target
Flyto pagination Only the initially supplied URL A Link header selected an unvalidated next page Attacker-controlled response and pagination enabled
Git index path The repository root and allowed Git operation A crafted index path made a read surface outside-file data Crafted index and process access to that path

A rule requiring the requested path to begin with a trusted directory does not prove that the kernel opened a file under the same directory. A check that one DNS answer is public does not prove the address used by the network socket is public. Neither statement is a critique of strings themselves; the weakness lies in using a string validation result as a durable authorization to perform a later effect.

In the filesystem case the documented effect is disclosure of entry names, not confirmed reading of arbitrary file contents. The index-path Git advisory concerns content returned by a nominal read, not necessarily execution of an external program. By contrast, the separate Git promisor and garbage-collection advisories involve Git launching executable helpers under specific repository conditions. Combining these into a single claim of universal remote code execution would erase the prerequisites that determine practical exposure.

Where agent authority enters the picture

Agents make these defects easier to reach repeatedly because a workflow can ask a tool to fetch, inspect, list, merge or continue without a person reviewing every low-level transition. Yet they do not create the underlying filesystem or Git semantics. The model chooses a function and arguments; the server should decide whether the actual effect is authorized at the point of use. For example, protecting the first request in a pagination loop is an incomplete control even when the model never sees the second URL. That second URL is chosen by a response from the remote server, which is another untrusted actor.

The same pattern appears across execution configuration. A Git hardening pass can freeze selected options at process start, but a merged branch may change an included configuration, or a nested submodule may supply its own settings. Security testing should therefore record not just the model call name but the effective configuration and object identity at the moment Git executes. The merge-abort config advisory and submodule advisory document different versions of that mismatch.

A more informative test than “does the guard exist?”

An operator can test the boundary in two stages: first, submit a legal-looking request whose target changes between validation and execution; second, ask whether the system denies the resulting outside-scope effect. For files, inspect the opened object and directory ancestry, not merely the original path string. For networking, enforce the selected socket address and redirects or pagination on every hop. For Git, treat repository configuration, external transport helpers and submodules as code-bearing inputs that can affect subsequent tool behavior.

These controls differ in implementation, so the articles and advisories do not validate one universal patch. They do identify a stronger shared invariant: permission must apply to the object and operation that actually happen, not to a description of what the agent intended to do several steps earlier. The public materials demonstrate product-specific failures under controlled conditions. They do not establish incident prevalence or common attacker attribution across the four systems.

Research behind this