fastmcp/tests/apps
Bill Easton c946664a16
Validate actual base64 data size in FileUpload, not client-reported size (#3816)
The store_files tool checked the client-provided `size` field to enforce
max_file_size, but this field is untrusted input. A client could set
size=1 while sending a multi-megabyte payload, bypassing the limit.

Now computes actual size from the base64 data length instead.

🤖 Generated with Claude Code

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 11:23:49 -04:00
..
__init__.py Add FileUpload provider (#3669) 2026-03-28 19:45:43 -04:00
test_approval.py Add Approval and Choice providers (#3686) 2026-03-28 20:58:17 -04:00
test_choice.py Add Approval and Choice providers (#3686) 2026-03-28 20:58:17 -04:00
test_file_upload.py Validate actual base64 data size in FileUpload, not client-reported size (#3816) 2026-04-11 11:23:49 -04:00
test_form.py fix: boolean false values dropped in form submissions (#3776) 2026-04-07 11:23:34 -04:00