sandlock icon indicating copy to clipboard operation
sandlock copied to clipboard

/proc/{parent_pid}/* Information Leak (HIGH)

Open congwang-mk opened this issue 7 months ago • 0 comments

The child can read /proc/{ppid}/cmdline, /proc/{ppid}/status, /proc/{ppid}/cgroup, and list /proc/{ppid}/fd/. This reveals:

  • Supervisor command line and arguments
  • UID/GID of the parent
  • Full capability bounding set
  • Open file descriptor list and targets
  • cgroup membership (container detection)

Impact: Information leak enabling targeted attacks against the supervisor. The fd listing could reveal the seccomp notif fd number for further exploitation.

Fix: Virtualize /proc/{ppid}/ access in the procfs handler. Block or filter reads to other PIDs' proc entries.

congwang-mk avatar Apr 08 '26 23:04 congwang-mk