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:
- Add shallow clone (
--depth 1).
- Apply operation timeout and kill stalled clone processes.
- Add disk quota checks before/after clone.
- 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.
Severity: High
Affected location:
git_ops.ts:48Issue:
git cloneruns without depth, size guard, or timeout, allowing oversized repository abuse and resource exhaustion.Mitigation plan:
--depth 1).Verification / tests: