Skip to content

Release 0.3.2

Latest

Choose a tag to compare

@wrr wrr released this 05 Nov 07:44
· 60 commits to main since this release
  • Security: Fix incorrect handling of tilde in DROP_HOME and
    XDG_CONFIG_HOME environment variables.

    The issue affects only users who used DROP_HOME or
    XDG_CONFIG_HOME with non-absolute paths to change the location
    where Drop stores its files

    When DROP_HOME or XDG_CONFIG_HOME contained a literal ~ (for
    example, set as DROP_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_HOME must now be an absolute path. Relative paths in
    XDG_DATA_HOME and XDG_CONFIG_HOME are ignored, as the XDG Base
    Directory specification requires.

    Thanks to Aditya Sai for reporting and fixing the issue.

  • Block /etc/ssh/ssh_config.d in the generated base.toml config

    ssh fails with Bad owner or permissions if any file included from
    /etc/ssh/ssh_config.d is 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.toml can add the following
    to their blocked_paths list (drop edit base):

      blocked_paths = [
        "/etc/ssh/ssh_config.d",
      ]