The on-disk name of an upload starts with its file id, which the client sends
in opts.meta.fileId. Attachments validated it (UploadPathBleed); avatars - the
same Meteor-Files pipeline - used it verbatim, so an avatar upload with a
fileId like ../../x wrote outside the avatar store, and Avatars.onBeforeUpload
did not require a signed-in user. Both collections now share one rule
(models/lib/uploadFileId.js): an id that does not look like WeKan's own is
replaced with a fresh one and the attempt recorded; avatars need a signed-in
uploader. The negative test fails on any namingFunction in the tree without
the rule.
Thanks to xet7 !