Werner Koch
db1f74ba53
gpg: Protect against rogue keyservers sending secret keys.
...
* g10/options.h (IMPORT_NO_SECKEY): New.
* g10/keyserver.c (keyserver_spawn, keyserver_import_cert): Set new
flag.
* g10/import.c (import_secret_one): Deny import if flag is set.
--
By modifying a keyserver or a DNS record to send a secret key, an
attacker could trick a user into signing using a different key and
user id. The trust model should protect against such rogue keys but
we better make sure that secret keys are never received from remote
sources.
Suggested-by: Stefan Tomanek
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit e7abed3448c1c1a4e756c12f95b665b517d22ebe)
Resolved conflicts:
g10/import.c
g10/keyserver.c
2014-03-07 10:14:05 +01:00
..
2013-11-27 09:20:02 +01:00
2014-01-30 18:48:37 +01:00
2013-08-28 17:40:32 +02:00
2013-08-28 17:40:32 +02:00
2013-02-22 10:56:13 +01:00
2011-03-08 12:23:59 +01:00
2014-01-29 15:19:20 +01:00
2011-12-01 11:09:02 +01:00
2011-09-20 09:54:27 +02:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2014-01-31 15:33:03 +01:00
2012-06-05 19:29:22 +02:00
2014-01-29 20:35:05 +01:00
2012-06-05 19:29:22 +02:00
2014-01-29 20:35:05 +01:00
2013-01-08 09:43:21 +01:00
2014-01-31 14:35:49 +01:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2007-07-04 19:49:40 +00:00
2014-01-30 18:48:37 +01:00
2014-01-29 20:35:05 +01:00
2014-01-29 20:35:05 +01:00
2014-01-30 18:48:37 +01:00
2013-05-07 21:35:48 +02:00
2014-02-10 17:46:40 +01:00
2014-01-29 20:35:05 +01:00
2014-03-07 09:58:22 +01:00
2012-06-05 19:29:22 +02:00
2014-03-07 10:14:05 +01:00
2013-11-15 15:49:34 +01:00
2013-11-15 15:54:31 +01:00
2014-02-05 10:37:59 +01:00
2014-02-10 17:46:40 +01:00
2014-02-10 23:15:34 +01:00
2014-02-05 10:37:59 +01:00
2014-02-10 17:46:40 +01:00
2013-11-18 14:09:47 +01:00
2010-04-23 11:36:59 +00:00
2011-01-10 14:30:17 +01:00
2014-03-07 10:14:05 +01:00
2014-01-31 15:33:03 +01:00
2014-02-05 10:37:59 +01:00
2014-02-10 17:46:40 +01:00
2011-02-04 12:57:53 +01:00
2014-02-07 13:41:04 +01:00
2013-11-18 14:09:47 +01:00
2000-07-31 08:04:16 +00:00
2014-03-07 10:14:05 +01:00
2014-03-07 09:53:29 +01:00
2014-01-29 20:35:05 +01:00
2014-01-30 18:48:37 +01:00
2014-01-29 20:35:05 +01:00
2014-02-10 23:15:28 +01:00
2010-04-23 11:36:59 +00:00
2014-02-10 17:46:40 +01:00
2014-01-30 18:48:37 +01:00
2014-01-30 18:48:37 +01:00
2012-06-05 19:29:22 +02:00
2011-02-04 12:57:53 +01:00
2014-01-30 18:48:37 +01:00
2000-07-31 08:04:16 +00:00
2013-01-08 09:43:21 +01:00
2011-02-04 12:57:53 +01:00
2008-12-12 08:54:50 +00:00
2012-05-08 18:18:32 +02:00
2013-11-18 14:09:47 +01:00
2014-01-30 18:48:37 +01:00
2014-01-29 20:35:05 +01:00
2014-01-30 18:48:37 +01:00
2011-02-04 12:57:53 +01:00
2014-01-29 20:35:05 +01:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2013-11-18 14:09:47 +01:00
2012-01-20 16:50:42 -05:00
2007-11-19 16:03:50 +00:00
2014-03-06 16:23:10 +09:00
2014-02-10 17:46:40 +01:00
2014-02-10 17:46:40 +01:00
2012-06-05 19:29:22 +02:00
2014-01-29 17:45:05 +01:00