Skip to content

fix/batches: validate shell probe paths - #1363

Open
cbrnrd wants to merge 1 commit into
mainfrom
carterbrainerd-vuln-139-i-can-escape-a-batch-step-container-through-image-controlled
Open

fix/batches: validate shell probe paths#1363
cbrnrd wants to merge 1 commit into
mainfrom
carterbrainerd-vuln-139-i-can-escape-a-batch-step-container-through-image-controlled

Conversation

@cbrnrd

@cbrnrd cbrnrd commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Problem

A batch step image controls the output of the mktemp shell probe. The CLI used that output in a Docker mount argument without validation, so invalid output could change the mount configuration. This was reported to us via HackerOne.

Solution

Require the probe output to be one absolute POSIX path with safe characters. Validate the path again before building the mount, and use one helper to validate executor bind mounts. Add regression tests for mount argument injection.

Verification Evidence

  • go test ./internal/batches/...
  • The regression test confirms that a comma-delimited mount payload is rejected.

@cbrnrd
cbrnrd requested a review from a team September 1, 2026 14:04
@cbrnrd
cbrnrd marked this pull request as ready for review September 1, 2026 14:05
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.

1 participant