git-annex/debian
Joey Hess 96dd0f4ebe
improve temp dir security
http://bugs.debian.org/807341

* Fix insecure temporary permissions when git-annex repair is used in
  in a corrupted git repository.

  Other calls to withTmpDir didn't leak any potentially private data,
  but repair clones the git repository to a temp directory which is made
  using the user's umask. Thus, it might expose a git repo that is
  otherwise locked down.

* Fix potential denial of service attack when creating temp dirs.

  Since withTmpDir used easily predictable temporary directory names,
  an attacker could create foo.0, foo.1, etc and as long as it managed to
  keep ahead of it, could prevent it from ever returning.

  I'd rate this as a low utility DOS attack. Most attackers in a position
  to do this could just fill up the disk /tmp is on to prevent anything
  from writing temp files. And few parts of git-annex use withTmpDir
  anyway, so DOS potential is quite low.

Examined all callers of withTmpDir and satisfied myself that
switching to mkdtmp and so getting a mode 700 temp dir wouldn't break any
of them.

Note that withTmpDirIn continues to not force temp dir to 700.
But it's only used for temp directories inside .git/annex/wherever/
so that is not a problem.

Also re-audited all other uses of temp files and dirs in git-annex.
2015-12-15 20:21:48 -04:00
..
patches Make git-annex-standalone.deb include the git-annex html documentation, desktop file, and base completion file, same as the regular git-annex.deb. 2015-11-10 13:21:05 -04:00
tests Debian: Run the builtin test suite as an autopkgtest. 2013-08-15 15:49:19 +02:00
cabal-wrapper remove workaround for old bug #763078 2015-08-04 13:00:22 -04:00
changelog improve temp dir security 2015-12-15 20:21:48 -04:00
compat debhelper v9 2012-01-15 14:53:38 -04:00
control Debian: Build depend on concurrent-output. 2015-12-12 12:19:31 -04:00
copyright lintian fix 2015-05-22 16:06:16 -04:00
create-standalone-changelog use BuildVersion in debian, which fixes windows build 2015-04-21 16:42:54 -04:00
doc-base Add doc-base file. Closes: #621408 2011-04-06 21:57:22 -04:00
git-annex.lintian-overrides merge lintian overrides from debian 2015-08-15 11:45:37 -04:00
NEWS prep release 2013-10-02 16:13:45 -04:00
rules wording 2015-11-16 17:06:34 -04:00