P0: su-exec in Docker entrypoint may fail silently — container runs as root #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P0 — Critical
File: docker-entrypoint.sh ~line 16
Problem: su-exec nodejs node server/index.js assumes the user exists. If UID/GID 1001 conflicts, su-exec may fail silently and the container runs as root.
Impact: Security vulnerability — container runs as root instead of the intended non-root user.
Fix: Add explicit check that su-exec succeeded, or use gosu with error handling.