Repository navigation
🔒 [security] guards: close env-check bypass, allow the run read helper - #66
Merged
Merged
Conversation
… scan
- ENV_CHECK prefix takes path characters only, so ; $ { } can't smuggle a second command
- spaces/tabs separate words and \Z ends the match, so a newline can't chain a dotenv read
- one deny test per bypass (semicolon, substitution, brace, newlines) plus legit direct, sh, tab and --file= calls
Closes #48
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- base allowlist adds super-board-github-read.py (python3 and direct), verification-ready.py and stop.sh - test_run_allowlist.py fails when pre-flight or a lane calls a .claude/bin script the list misses - run-workflow.md: .claude/super-board/ is a protected path no allow rule covers; claude -p needs bypassPermissions in a sandbox, else run interactively Closes #38 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
⏳ In review · ✅ 6/7 AC · Closes #48 · Closes #38 · head
d3082ceProblem
hooks/guard-secrets.py→ENV_CHECK(🐛 [bug] guards: env-check allowlist lets a chained command read .env #48)(?:\S*/)?let;,$,{,}into the path prefix, so a second command rode along with the env-check call\sand$accepted a newline, a bash command separatorskills/super-board/references/run-workflow.md→ "Mid-run permission prompts" (🐛 [bug] run: fresh install can't start, read helper not allowed #38)super-board-github-read.py(andverification-ready.py), so pre-flight stopped on a prompt.claude/super-board/(wave lock) are a Claude Code protected path; a headlessacceptEditsrun can't create the lock/super-board runSolution
ENV_CHECKtakes path characters only in the prefix, spaces/tabs as separators,\Zas the endtests/test-guard-hooks.sh, plus allow cases for direct,sh, tab and--file=callsverification-ready.pyandstop.shtests/test_run_allowlist.pychecks every.claude/binscript called by run-workflow.md, the wave workflow and the lane skills is coveredclaude -p "/super-board run"needsbypassPermissionsin an isolated sandbox; otherwise run interactively and allow the.claudefolder for the session..claude/worktrees/is exempt from protectionAcceptance criteria
↳
tests/test-guard-hooks.shenv-check cases; failed against origin/main's hook, pass now--filewith a local dotenv) still allow↳ existing + new allow cases in
tests/test-guard-hooks.sh↳ semicolon, substitution, brace, newline before/after/inside, trailing newline
super-board-github-read.pyin both forms↳
run-workflow.mdbase list; onboard writes this list↳
tests/test_run_allowlist.py(red before the doc fix)claude -p "/super-board run"is supported↳ "Headless runs" paragraph
↳ not verified: needs a live dogfood run with
bypassPermissionsin a sandbox · EricIteration history
bash tests/run-safety.sh→ 58/58 suites ·d3082ceRisk
🟢 Low · regex narrowing (legit calls keep their shape) plus allowlist and docs.
🤖 Generated with Claude Code