M1-audit MUST: blob PUT never enforces declared BlobSize/ChunkCount — unbounded disk write #75
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#75
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M1-close ponytail-audit finding (issue #65).
CreateUploadUrl validates BlobSize (≤5 GB) and ChunkCount (≤10k) and stores them on the FileItem — but UploadBlob streams
request.Bodystraight to disk with no size check. Concrete case: client declares 1 MB, uploads 10 GB (or re-PUTs a pending file endlessly) → disk fill on the API host. Combined with the unauthenticated nature of the PUT (UPL-02), the declared-size check is the cheapest containment available today.Fix (smallest, interim until UPL-02/Phase 7): enforce
Content-Length(or counted bytes) ≤ fileItem.BlobSize in UploadBlob; reject with 413. One check + test. Counts toward the quota-enforcement M-finding when it lands in Phase 7.