Reject invalid reserved Background TUS uploads #559

Open
opened 2026-09-30 23:43:15 +00:00 by kayg · 0 comments
Owner

The adversarial API probe found that reserved Background upload paths bypass expected upload validation. POST /api/v1/files/uploads with Upload-Length: 26214400 and path metadata .calternal/backgrounds returned 201 (the existing probe expects 413). A four-byte PATCH that completed not-image.jpg at .calternal/backgrounds returned 204 (the existing probe expects 400). Evidence is in tests/adversarial/attack.py around lines 1769–1802. Please reject oversized uploads and validate completed payloads for this reserved path. The probe expectations were left unchanged.

The adversarial API probe found that reserved Background upload paths bypass expected upload validation. `POST /api/v1/files/uploads` with `Upload-Length: 26214400` and path metadata `.calternal/backgrounds` returned `201` (the existing probe expects `413`). A four-byte `PATCH` that completed `not-image.jpg` at `.calternal/backgrounds` returned `204` (the existing probe expects `400`). Evidence is in `tests/adversarial/attack.py` around lines 1769–1802. Please reject oversized uploads and validate completed payloads for this reserved path. The probe expectations were left unchanged.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#559
No description provided.