Repository navigation
-
Security: Fix incorrect handling of tilde in
DROP_HOMEand
XDG_CONFIG_HOMEenvironment variables.The issue affects only users who used
DROP_HOMEor
XDG_CONFIG_HOMEwith non-absolute paths to change the location
where Drop stores its filesWhen
DROP_HOMEorXDG_CONFIG_HOMEcontained a literal~(for
example, set asDROP_HOME="~/drop", where the shell doesn't expand
the quoted ~), Drop stored its config files in a./~/directory
relative to the current working directory. When Drop was started in
a directory which was exposed read-write to the sandbox, sandboxed
programs could modify Drop's config and grant themselves more access
to the host on the next run.DROP_HOMEmust now be an absolute path. Relative paths in
XDG_DATA_HOMEandXDG_CONFIG_HOMEare ignored, as the XDG Base
Directory specification requires.Thanks to Aditya Sai for reporting and fixing the issue.
-
Block
/etc/ssh/ssh_config.din the generatedbase.tomlconfigssh fails with
Bad owner or permissionsif any file included from
/etc/ssh/ssh_config.dis not owned by root. In a rootless sandbox,
files owned by root are seen as owned by nobody, which causes ssh to
fail to start if a system includes config snippets in
/etc/ssh/ssh_config.d(Arch, Fedora).Blocking the dir makes ssh skip these snippets and use only the
main/etc/ssh/ssh_config.Users who already have a generated
base.tomlcan add the following
to theirblocked_pathslist (drop edit base):blocked_paths = [ "/etc/ssh/ssh_config.d", ]