Skip to content

[low] files API checks paths lexically, so symlinks can escape the workspace #494

Open

Description

@Interstellar-code

Severity: low

  • Verdict: PARTLY (lexical check CONFIRMED; exploit not tested)
  • Body: no realpath; a symlink inside the workspace pointing outside allows read, write or delete outside it. Use realpath containment.
  • Evidence: src/routes/api/files.ts:50-67.

Source: docs/overnight-2026-10-26/issues-draft.md § C3
Filed from the 2026-10-26 overnight audit (read-only findings, not yet triaged).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions