Skip to the content.

Threat model

upload_inspector decides whether an untrusted uploaded file has a structure known to be safe. This page states what it defends against, what it does not, and what it assumes of the app.

Attacker

Anyone who can upload a file: they control every byte, the file name, the declared Content-Type and size (browser and presigned-URL uploads alike). They want the file stored and later opened by a person, a browser or a server process where it does harm.

In scope (rejected)

Out of scope (not detected)

Assumptions

Known limitations