Skip to content

agents: child argv depth-guard bypassed by quoting/substitution and env -i #228

Closed

Description

@ajianaz

#123, scan 0.7.0 MAJOR security. check_child_agent_argv misses tole) / "tole" / $(...) forms, and env -i clears the TOLE_AGENT_DEPTH marker — a concrete depth-cap bypass spawning a depth-0 tole with agent tools. Fix per scan: reject env-clearing argv elements, normalize quotes/parens/$=/backslash before compare, and propagate depth via a channel env -i cannot clear (marker file under the sessions dir).

Triage

Label: blocker (scan 0.7.0 pre-tag gate). Scan found this MAJOR valid on triage; see the scan log context in the tole-dev uteke room.

Activity

  1. added
    enhancement
    on Oct 6, 2026
  2. ajianaz commented on Oct 7, 2026

    @ajianaz
    ContributorAuthor

    Closed by #238.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions