s03_permission: Agent bypasses workspace validation through bash

オープン
#494 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 8 日以内に返信

@lienzhendeshuai がすでに取り組んでいます。

2026年10月25日 から。

  • #601 @lienzhendeshuai による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
cli, security

調査の方向性

まず、read_file、write_file、edit_file、および bash ツールの権限チェックを追跡し、WORKDIR の境界がどのように適用されているかに注目します。同等の bash ファイル操作で WORKDIR の外に出られないことを確認し、その後、ファイルツールと bash のパスケースの両方を実行して、制限が一貫していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

When file operations (read_file, write_file, edit_file) access paths outside WORKDIR, the permission check correctly returns:
Path escapes workspace
However, the agent bypasses the restriction by switching to the bash tool to directly access files outside the workspace.
The current permission mechanism only validates individual file tools and does not prevent equivalent operations through other tools.

主要言語
Python
スター
79.9k
フォーク
12.8k
平均マージ
7日 17時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

shareAI-lab/learn-claude-code のほかの issue

shareAI-lab/learn-claude-code の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。