Skip to content

[Security] Compiler subprocess runs without any OS-level isolation #17

Description

@whaiman

Context

The compiler is spawned directly via subprocess.run in the same OS user context as the server process. There is no chroot, seccomp filter, Linux namespace, or bubblewrap sandbox.

If an attacker bypasses flag filtering (HIGH-1 / MED-2), they get arbitrary code execution as the server user.

Location: rgcc/server/compiler/runner.py, lines 115–116

Proposed fix

Wrap compiler invocation with bwrap (bubblewrap) or run each job inside a fresh Docker container with --network=none --read-only and a volume-mounted work directory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions