The shell snapshot is hashed, then reopened to source it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash, typescript
調査の方向性
Read the fork change in PR #255, especially commits 8c443d04d3 and b1c5e383c2, and trace pin_snapshot through run_setup. Reproduce the timeout-triggered rebuild and inspect how the snapshot is hashed and sourced. Done means the session executes the exact bytes that were hashed, so a file swap cannot leave snapshotChanged false.
索引モデルが issue の本文から書いたものです。
説明
The fork's pin_snapshot hashes the shell snapshot, then source reopens the file by path. A writer that lands between the two during a core rebuild gets its bytes sourced under a hash that says nothing changed, so snapshotChanged stays false and the gate keeps reviewing.
rebuild (after a timeout) ─▶ hash snapshot ─▶ (writer swaps file) ─▶ source <path> ─▶ baseline taken
▲ window: the start of run_setup
Exploiting it needs a write to $TMPDIR/omp-shell-snapshots-<uid>/ racing a core rebuild, which the agent can force with a timeout. The window is the gap between two syscalls, not a review round trip.
Fix: read the snapshot bytes once and source exactly those bytes (feed them to the session as a script rather than source '<path>'), so the pin and the sourced text cannot diverge.
Found by the Opus security review of the fork change for https://github.com/STRML/omp-classifier/pull/255 (fork commits 8c443d04d3 and b1c5e383c2).
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 1
- 平均マージ
- 49分
- マージ済み PR(30日)
- 82
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
STRML/omp-classifier のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
STRML/omp-classifier#259 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
STRML/omp-classifier#253 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
STRML/omp-classifier#252 ·
メンテナーはふだん 1 日以内に返信
STRML/omp-classifier の issue をすべて見る
似ている issue
-
bug(core): JsonOutputKeyToolsParser ignores returnId: true対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/langchainjs#12239 ·
メンテナーはふだん 1 日以内に返信
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
paperclipai/paperclip#21837 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
code-yeongyu/senpi#6813 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
lingdojo/kana-dojo#34169 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100