]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Warn if HSes are configured on a client with UseEntryGuards disabled
authorRobert Ransom <rransom.8774@gmail.com>
Tue, 18 Sep 2012 20:50:00 +0000 (16:50 -0400)
committerRobert Ransom <rransom.8774@gmail.com>
Tue, 18 Sep 2012 20:50:00 +0000 (16:50 -0400)
changes/warn-about-hses-without-guards [new file with mode: 0644]
src/or/config.c

diff --git a/changes/warn-about-hses-without-guards b/changes/warn-about-hses-without-guards
new file mode 100644 (file)
index 0000000..57b8b4d
--- /dev/null
@@ -0,0 +1,8 @@
+  o Minor features:
+
+    - Warn users who run hidden services on a Tor client with
+      UseEntryGuards disabled that their hidden services will be
+      vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
+      attack which motivated Tor to support entry guards in the first
+      place).  Fixes bug 6889.
+
index affe2388bf96e3de54d5a728501a1135292abdd9..11f63efddc8f79959536d840de088bb215c90037 100644 (file)
@@ -2536,6 +2536,15 @@ options_validate(or_options_t *old_options, or_options_t *options,
     options->UseEntryGuards = 0;
   }
 
+  if (!(options->UseEntryGuards) &&
+      (options->RendConfigLines != NULL)) {
+    log_warn(LD_CONFIG,
+            "UseEntryGuards is disabled, but you have configured one or more "
+            "hidden services on this Tor instance.  Your hidden services "
+            "will be very easy to locate using a well-known attack -- see "
+            "http://freehaven.net/anonbib/#hs-attack06 for details.");
+  }
+
   if (!(options->LearnCircuitBuildTimeout) &&
         options->CircuitBuildTimeout < RECOMMENDED_MIN_CIRCUIT_BUILD_TIMEOUT) {
     log_warn(LD_CONFIG,