Reviewing an Upload Feature for Defensive Behavior

An upload feature can check size, structural compatibility, visibility, and storage outcome across its normal workflow.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a safe fixture
  2. Keep cleanup observable

Trace a safe fixture

Use a small ordinary data file with the supported structure, and check the stored result. A file with the same suffix but a different benign format can check rejection. See format validation.

Keep cleanup observable

Verify a rejected upload cannot appear as a completed public item, and confirm the expected diagnostic is recoverable. Handling partial success defines what may safely remain.[1]

References

  1. NIST SP 800-218, Secure Software Development Framework ↩