git-annex/Remote/Helper
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
..
Chunked remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
AWS.hs S3: Support the special case endpoint needed for the cn-north-1 region. 2016-11-07 11:49:34 -04:00
Chunked.hs fix giveup shadowing 2016-11-16 00:28:10 -04:00
Encryptable.hs implement exporttree=yes configuration 2017-09-04 13:09:38 -04:00
Export.hs refactor 2017-09-20 16:22:32 -04:00
Git.hs change Remote.repo to Remote.getRepo 2018-06-04 15:30:26 -04:00
Hooks.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Http.hs fix bad refactoring 2018-04-06 16:59:14 -04:00
Messages.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
P2P.hs deal with unlocked files 2018-03-13 14:27:14 -04:00
ReadOnly.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Special.hs add retrievalSecurityPolicy 2018-06-21 11:36:36 -04:00
Ssh.hs display p2pstdio stderr after auth 2018-06-12 14:59:05 -04:00