M1-audit: UpdateFile accepts unvalidated BlobSize/ChunkCount — defeats the #75 disk-fill cap #87
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#87
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?
UploadBlob caps at the declared BlobSize (#75), but UpdateFile.cs:48-49 lets the uploader overwrite BlobSize/ChunkCount with any values while pending — no upper bound.
Trigger: upload-url with BlobSize=1 →
PUT /files/{id} {"blobSize": 1099511627776}(still pending) → blob PUT with no Content-Length → 1 TB accepted past the guard.Fix: apply CreateUploadUrl's rules (0 < BlobSize ≤ 5 GB, 1 ≤ ChunkCount ≤ 10k) in UpdateFile.
Part of M1 closure audit #84.