You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[audit] Medium/Low findings tracker (2026-06 suite audit) #59
[M sec] User-controlled ext.setup/packages/container/runOptions/instanceType spliced into root user-data + docker argv unvalidated. → document ext.setup as root RCE; allowlist instanceType, bound ttl, validate region/ami; build docker argv as a list.
[M sec] Staging temp file with full task script never deleted (info disclosure + /tmp accumulation). → delete in finally / deleteOnExit().
[M corr]set -uo pipefail (no -e); output up-sync + .exitcode upload unguarded → silent partial success. → guard syncs; on output-sync failure write non-zero .exitcode or skip upload.
[M health] CI never runs the Spock suite (only guard on generated-shell correctness). → add ./gradlew test to ci.yml, gate release.
[M corr] ext.volumes basename matching can mis-symlink an unrelated input to a reference-DB mount. → tighten match (explicit mapping/dir-style); log every symlink substitution.
[L sec] Work dir chmod 0777 unconditionally, even bare-OS tasks. → gate behind container branch; prefer chown to container UID/GID or --user.
[L ergo] No validation for unset/non-S3 workDir; task hangs in RUNNING. → validate workDirStr starts with s3:// in submit(), throw AbortOperationException.
[L health] ext.volumes parsed three times with divergent error handling. → parse once into typed List, derive args/mounts.
Addressed in 6dd00ab (CI will validate — no local JDK here, so the now-enabled Spock suite is the gate):
✅ [M sec] Staging temp file (full task script) now deleted after launch (try/finally + deleteOnExit backstop).
✅ [M corr] Unguarded output sync → silent partial success: .exitcode is now written after the output up-sync, and a sync failure flips a success code to non-zero so Nextflow sees a task failure rather than a success with missing outputs.
✅ [M health] CI now runs ./gradlew test (was assemble-only).
✅ [L ergo] Fail fast on unset/non-s3:// workDir instead of hanging the task in RUNNING.
[M sec] User-controlled ext.setup/packages/container/runOptions/instanceType spliced into root user-data + docker argv. Needs a design call: document ext.setup as root-RCE-by-design vs. allowlist instanceType / bound ttl / validate region+ami / build docker argv as a list. (killTask synchronous-submit blocking is also still here.)
[M corr]ext.volumes basename matching can mis-symlink an unrelated input to a reference-DB mount — needs tighter (explicit/dir-style) matching + logging each substitution.
[L sec] Work dir chmod 0777 unconditional even for bare-OS tasks → gate behind the container branch.
[L health]ext.volumes parsed three times — parse once into a typed list.
Re-verification against current code (~v0.8.0) — 2026-07-16
4 fixed, 1 partial, 4 still open. All refs in src/main/groovy/io/nextflow/spawn/SpawnTaskHandler.groovy unless noted.
[M sec] Untrusted ext. → root user-data + docker argv* — ❌ STILL-OPEN. ext.setup spliced verbatim into root user-data with no validation/doc-warning (buildSetupScript:635-639); instanceType not allowlisted (:41), ttl unbounded (:44), region/ami unvalidated (:42,:46); docker argv still built as a string (buildRunLine:912-914). (ext.packages IS shell-quoted, :629.)
[M sec] Staging temp file never deleted — ✅ FIXED. createTempFile + deleteOnExit (:143-144) + Files.deleteIfExists in finally (:164-166).
[L sec] Work dir chmod 0777 unconditional — ❌ STILL-OPEN. buildStagingScript emits chmod 0777 with no container guard (:673); bare-OS tasks get world-writable work dir.
Activity
fix: address #59 medium/low audit items
scttfrdmn commentedon Jun 21, 2026
Addressed in
6dd00ab(CI will validate — no local JDK here, so the now-enabled Spock suite is the gate):.exitcodeis now written after the output up-sync, and a sync failure flips a success code to non-zero so Nextflow sees a task failure rather than a success with missing outputs../gradlew test(wasassemble-only).s3://workDir instead of hanging the task in RUNNING.putAll(System.getenv()).Deferred (leaving open):
ext.setup/packages/container/runOptions/instanceTypespliced into root user-data + docker argv. Needs a design call: documentext.setupas root-RCE-by-design vs. allowlist instanceType / bound ttl / validate region+ami / build docker argv as a list. (killTasksynchronous-submit blocking is also still here.)ext.volumesbasename matching can mis-symlink an unrelated input to a reference-DB mount — needs tighter (explicit/dir-style) matching + logging each substitution.chmod 0777unconditional even for bare-OS tasks → gate behind the container branch.ext.volumesparsed three times — parse once into a typed list.scttfrdmn commentedon Jul 16, 2026
Re-verification against current code (~v0.8.0) — 2026-07-16
4 fixed, 1 partial, 4 still open. All refs in src/main/groovy/io/nextflow/spawn/SpawnTaskHandler.groovy unless noted.
ext.setupspliced verbatim into root user-data with no validation/doc-warning (buildSetupScript:635-639); instanceType not allowlisted (:41), ttl unbounded (:44), region/ami unvalidated (:42,:46); docker argv still built as a string (buildRunLine:912-914). (ext.packages IS shell-quoted, :629.)./gradlew test(cites [audit] Medium/Low findings tracker (2026-06 suite audit) #59).chmod 0777with no container guard (:673); bare-OS tasks get world-writable work dir.Remaining: ext.* RCE-surface hardening (M sec), volumes basename mis-symlink (M corr), chmod-0777 guard (L sec), consolidate volume parsing (L health). submit() async → tracked by #70.
Add Dependabot for the SHA-pinned actions and the Gradle plugins (#80) (