nix-community / vulnix

Vulnerability (CVE) scanner for Nix/NixOS.
BSD 3-Clause "New" or "Revised" License
476 stars 36 forks source link

Move /tmp/nvd to something more sensible #7

Closed ckauhaus closed 8 years ago

ckauhaus commented 8 years ago

Writing into a file with a predictable name in a 777 directory (possibly as privileged user) is a huge security risk. This also runs into problems if both a privileged user and a non-privileged user use vulnix on the same system.

Better use a user-specific cache directory. Click has some support for system-independent config directory access, perhaps we can build on top of that. Or just use $HOME/.cache/vulnix.

plumps commented 8 years ago

Went for $HOME/.cache/vulnix