Skip to content

fix(security): validate fluid_log_path (CodeQL path injection)#5

Merged
fuse merged 1 commit into
developfrom
fix/codeql-fluid-log-path
May 26, 2026
Merged

fix(security): validate fluid_log_path (CodeQL path injection)#5
fuse merged 1 commit into
developfrom
fix/codeql-fluid-log-path

Conversation

@fuse

@fuse fuse commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Addresses GitHub Advanced Security / CodeQL go/path-injection on execution/agent.go (os.Stat / os.ReadFile on fluid_log_path from skill payloads).

Approach

  • New safeFluidLogPath: absolute path only, must stay under /tmp/fluid/ (same contract as control plane FluidVars.fluid_log_path).
  • Reject .. traversal and paths outside that root.
  • Unit tests in execution/logpath_test.go.

Test plan

  • go test ./...
  • Code scanning alerts closed after merge

Squash and merge into develop.

Restrict log tailing to absolute paths under /tmp/fluid/ to address
CodeQL go/path-injection on skill payload fluid_log_path.
@fuse fuse merged commit 5afa3a0 into develop May 26, 2026
3 checks passed
@fuse fuse deleted the fix/codeql-fluid-log-path branch May 26, 2026 15:18
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