<@U07SFV37BME> Would you like <github.com/overlook...
# choria
n
@R.I.Pienaar Would you like github.com/overlookinfra/file_transfer-agent in the
choria-plugins
org?
r
• files/mcollective/agent/file_transfer:L129-L130, L469: 🔴 security: put preserves all four mode digits, including setuid/setgid. A policy permitting uploads to a root-owned executable path can create a privileged executable. Mask mode to 0o777 (or explicitly reject special bits) before chmod. FYI
• files/mcollective/agent/file_transferL159 🟡 risk: abort validates destination only as an absolute path, unlike put; a caller can target the transfer-temp filename in any parent directory by supplying an arbitrary child path. Use destination_input so abort and put derive the same valid destination semantics. That one I am less sure about (the other one is really common so willing to trust the LLM output without really looking)
n
Could have sworn I stripped out the setuid/setgid bits. I’ll take a look.
Well, I think I do in the client code, but probably good in the agent code too
r
Part of it is how you specify the argument I think, you should declare an octal type
then you can set the umask