Skip to content

SEC: Git delivery: configured workdir and private home inherit public traversal permissions (Codex F4) #447

Closed

Description

@ephico2real2

Part of #286. Found by Codex (another model family) reviewing the Git delivery layer on main b8ee59e (PRs #288, #299), 2026-11-19. Severity per Codex: Medium.

Location: cmapi/src/cmapi/core/git/workspace.py:107–:117.

With an explicit workdir and umask 022, mkdir creates 0755 directories and the lock is 0644. Other local UIDs with access to the volume can traverse and read checkout/mirror contents and private home files. This does not prove that the mounted credential files themselves become world-readable.

Full fix: private 0700 root/home and 0600 lock; if a root-owned fsGroup-writable volume refuses chmod, create an owned .private-<uid> child, refusing a symlink there. Appendix C: workspace.py constructor. The fsGroup fallback is source-reviewed but not tested under a second real UID here.

Test: test_workspace_is_private_under_permissive_umask: fails main; passes fixed after a real branch build.

Evidence: workbench/cmapi/review-288b/codex-report.md (F4) and its regression test in codex-fixes.patch; Codex ran it failing on main and passing with its fix. Reviewer 2 (OB3) checks the fix and runs the PostgreSQL and SSH checks the sandbox could not, before it is applied.

Activity

  1. added
    bug
    status:open
    sev:medium
    Backlog
    on Nov 19, 2026
  2. ephico2real2 commented on Nov 19, 2026

    @ephico2real2
    OwnerAuthor

    Fixed by #459 (merged, CI green), from Codex's review of the Git delivery layer with OB3's corrected fix; the coordinator ran its test failing on main and passing with the fix. GitHub closed only the first Closes line of that PR.

  3. added
    Done
    and removed
    Backlog
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Donebugsev:mediumstatus:open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions