Skip to content

[VULN-16] Git Clone Without Limits/Timeout #31

Description

@lyncmi07

Severity: High
Affected location: git_ops.ts:48

Issue:
git clone runs without depth, size guard, or timeout, allowing oversized repository abuse and resource exhaustion.

Mitigation plan:

  1. Add shallow clone (--depth 1).
  2. Apply operation timeout and kill stalled clone processes.
  3. Add disk quota checks before/after clone.
  4. Restrict allowed git hosts if feasible.

Verification / tests:

  • Integration test for timeout behavior on slow/large clone.
  • Test shallow clone still supports expected site workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions