git-annex/Remote
Joey Hess 4315bb9e42
add retrievalSecurityPolicy
This will be used to protect against CVE-2018-10859, where an encrypted
special remote is fed the wrong encrypted data, and so tricked into
decrypting something that the user encrypted with their gpg key and did
not store in git-annex.

It also protects against CVE-2018-10857, where a remote follows a http
redirect to a file:// url or to a local private web server. While that's
already been prevented in git-annex's own use of http, external special
remotes, hooks, etc use other http implementations and could still be
vulnerable.

The policy is not yet enforced, this commit only adds the appropriate
metadata to remotes.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2018-06-21 11:36:36 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External add GETINFO to external protocol (for ronnypfa) 2018-06-08 11:56:24 -04:00
Helper add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Rsync Support exporttree=yes for rsync special remotes. 2018-02-28 13:36:20 -04:00
WebDAV webdav: Avoid unncessisarily creating the collection at the top of the repo 2017-10-11 11:10:33 -04:00
Adb.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
BitTorrent.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Bup.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Ddar.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Directory.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
External.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
GCrypt.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Git.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Glacier.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Hook.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
List.hs change Remote.repo to Remote.getRepo 2018-06-04 15:30:26 -04:00
P2P.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Rsync.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
S3.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Tahoe.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Web.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
WebDAV.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00