Skip to content

fix: close path traversal and command wrapper bypasses - #3

Merged
PRINCE2-AI merged 3 commits into
mainfrom
fix/batch1-p0
Oct 26, 2026
Merged

PRINCE2-AI merged 3 commits into
mainfrom
fix/batch1-p0

Conversation

@PRINCE2-AI

Copy link
Copy Markdown
Owner

Summary

  • Resolve and validate file paths against the workspace root before any I/O.
  • Reject shell-wrapper invocations that bypassed the command allowlist.
  • Add regression tests for both bypasses.

Verification

  • CI runs the offline test suite on this PR.

- validate grep/list directories and skip symlinks escaping the workspace
- resolve env/time/timeout/xargs/stdbuf wrappers before executable checks
- block nested shells, inline interpreter code, privilege escalation, and env split-string injection
- document the guardrail as a best-effort denylist
- add regression tests for path and wrapper cases
Copilot AI balanced review requested due to automatic review settings October 26, 2026 06:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@PRINCE2-AI
PRINCE2-AI merged commit e4a122b into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants