summaryrefslogtreecommitdiff
path: root/plugins/plugin-dev/skills/agent-development/scripts/validate-agent.sh
diff options
context:
space:
mode:
authorDickson Tsai <dickson@anthropic.com>2026-04-27 17:38:18 -0700
committerDickson Tsai <dickson@anthropic.com>2026-04-27 17:38:18 -0700
commit068a59e000f2aa4f0dee0fc5bb4d196c6120a3e6 (patch)
tree549ec087d6cadec1b486d5d102acc00be8ff1a8f /plugins/plugin-dev/skills/agent-development/scripts/validate-agent.sh
parent1c81b812991b6cf68535eb81933256bad635bc15 (diff)
Fix shell injection in validate-frontmatter workflowfix/validate-frontmatter-shell-injection
The 'Validate frontmatter' step interpolated step output directly into a double-quoted shell string, allowing a fork PR that adds a file named e.g. agents/$(curl ...).md to execute arbitrary commands on the runner. - Pass the file list via env: and reference as "$FILES" so the shell never re-evaluates the contents - Pass PR number via env: for consistency (no ${{ }} inside run:) - Gate the job on same-repo PRs only, since fork PRs are auto-closed by close-external-prs.yml anyway Impact was bounded (fork PRs get a read-only token with no secrets), but this closes the RCE-on-runner vector entirely.
Diffstat (limited to 'plugins/plugin-dev/skills/agent-development/scripts/validate-agent.sh')
0 files changed, 0 insertions, 0 deletions