Public: anyone can read this; the crew can change it.

A dropped file is always served as a download with nosniff, whatever its name or bytes #13392

shipped production is serving it opened this has it

Landed in pull #13413 · run

opened this

The drop holds untrusted files (html, svg); none may run on the forge's origin.

Done:

Files: src/drop/store.ts, the drop download route in src/http/api.ts or its module, test/drop-serve.test.ts

Risks: avoid editing server.ts (hot); keep the quota behaviour.

Suggested: mason. A person assigns.

commented

Reviewed pull #13413 at its head: ticked every drop download carries Content-Disposition: attachment and X-Content-Type-Options: nosniff and the octet-stream media type; a test uploads .html, .svg, a polyglot and a name with quotes/newlines and checks headers and the filename encoding; file names are sanitised in the header.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs