1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 69384568f6 gpg: Make the use of "--verify FILE" for detached sigs harder.
* g10/openfile.c (open_sigfile): Factor some code out to ...
(get_matching_datafile): new function.
* g10/plaintext.c (hash_datafiles): Do not try to find matching file
in batch mode.
* g10/mainproc.c (check_sig_and_print): Print a warning if a possibly
matching data file is not used by a standard signatures.
--

Allowing to use the abbreviated form for detached signatures is a long
standing bug which has only been noticed by the public with the
release of 2.1.0.  :-(

What we do is to remove the ability to check detached signature in
--batch using the one file abbreviated mode.  This should exhibit
problems in scripts which use this insecure practice.  We also print a
warning if a matching data file exists but was not considered because
the detached signature was actually a standard signature:

  gpgv: Good signature from "Werner Koch (dist sig)"
  gpgv: WARNING: not a detached signature; \
  file 'gnupg-2.1.0.tar.bz2' was NOT verified!

We can only print a warning because it is possible that a standard
signature is indeed to be verified but by coincidence a file with a
matching name is stored alongside the standard signature.

Reported-by: Simon Nicolussi (to gnupg-users on Nov 7)
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-11-13 17:39:31 +01:00
..
2008-06-25 11:14:48 +00:00
sm/
2006-11-14 10:23:21 +00:00
2010-06-10 10:39:44 +00:00
DCO
2013-04-17 11:26:27 +02:00
2014-11-04 21:29:58 +01:00
FAQ
2010-10-05 13:56:25 +00:00
2003-01-09 13:24:01 +00:00
2009-07-22 13:33:46 +00:00
2010-06-10 10:39:44 +00:00
2007-07-04 19:49:40 +00:00
2007-03-08 18:31:56 +00:00
2014-07-03 11:03:22 +02:00
2014-11-04 21:29:58 +01:00
2013-04-19 12:01:22 +02:00
2013-02-12 14:15:21 +09:00
2007-05-08 13:59:41 +00:00
2006-08-21 20:20:23 +00:00
2008-06-25 11:14:48 +00:00
2012-11-30 12:47:49 -05:00
2014-07-25 09:43:29 +02:00
2009-07-22 13:33:46 +00:00
2011-08-12 14:40:47 +02:00
2006-12-06 16:38:34 +00:00
2014-08-18 11:42:10 +02:00