Hello community,

here is the log from the commit of package tor.2503 for openSUSE:12.3:Update 
checked in at 2014-01-28 12:40:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.3:Update/tor.2503 (Old)
 and      /work/SRC/openSUSE:12.3:Update/.tor.2503.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tor.2503"

Changes:
--------
New Changes file:

--- /dev/null   2013-11-25 01:44:08.036031256 +0100
+++ /work/SRC/openSUSE:12.3:Update/.tor.2503.new/tor.changes    2014-01-28 
12:41:00.000000000 +0100
@@ -0,0 +1,1878 @@
+-------------------------------------------------------------------
+Mon Jan 20 20:55:12 UTC 2014 - andreas.stie...@gmx.de
+
+- fixes potentially poor random number generation for users who 
+  1) use OpenSSL 1.0.0 or later, 
+  2) set "HardwareAccel 1" in their torrc file, 
+  3) have "Sandy Bridge" or "Ivy Bridge" Intel processors
+  and 
+  4) have no state file in their DataDirectory (as would happen on
+  first start). 
+  Users who generated relay or hidden service identity keys in such
+  a situation should discard them and generate new ones.
+  No 2 is not the default configuration for openSUSE.
+  [bnc#859421] [CVE-2013-7295]  
+- added patches:
+  * tor-0.2.3.x-CVE-2013-7295.patch
+
+-------------------------------------------------------------------
+Tue Nov 27 21:46:02 UTC 2012 - andreas.stie...@gmx.de
+
+- update to 0.2.3.25, the first stable release in the 0.2.3 branch
+  + significantly reduced directory overhead (via microdescriptors)
+  + enormous crypto performance improvements for fast relays on new
+     enough hardware
+  + new v3 TLS handshake protocol that can better resist 
+    fingerprinting
+  + support for protocol obfuscation plugins (pluggable transports)
+  + better scalability for hidden services
+  + IPv6 support for bridges
+  + performance improvements 
+  + new "stream isolation" design to isolate different applications 
+    on different circuits
+  + many stability, security, and privacy fixes
+  + Complete list of changes enumerated in:
+    https://lists.torproject.org/pipermail/tor-talk/2012-November/026554.html
+    
https://gitweb.torproject.org/tor.git/blob/267c0e5aa14deeb2ca0d7997b4ef5a5c2bbf5fd4:/ReleaseNotes
+  + Tear down the circuit when receiving an unexpected SENDME cell.
+    [bnc#791374] CVE-2012-5573
+- build using --enable-bufferevents provided by Libevent 2.0.13
+ 
+-------------------------------------------------------------------
+Tue Nov 20 09:07:23 UTC 2012 - dims...@opensuse.org
+
+- Fix useradd invocation: -o is useless without -u and newer
+  versions of pwdutils/shadowutils fail on this now.
+
+-------------------------------------------------------------------
+Sat Sep 15 14:08:49 UTC 2012 - andreas.stie...@gmx.de
+
+- update to 0.2.2.39 [bnc#780620]
+  Changes in version 0.2.2.39 - 2012-09-11
+  Tor 0.2.2.39 fixes two more opportunities for remotely triggerable 
+  assertions.
+
+  o Security fixes:
+    - Fix an assertion failure in tor_timegm() that could be triggered
+      by a badly formatted directory object.
+      CVE-2012-4922
+    - Do not crash when comparing an address with port value 0 to an
+      address policy. This bug could have been used to cause a remote
+      assertion failure by or against directory authorities, or to
+      allow some applications to crash clients.
+      CVE-2012-4419
+
+-------------------------------------------------------------------
+Mon Aug 20 19:11:57 UTC 2012 - andreas.stie...@gmx.de
+
+- update to 0.2.2.38 [bnc#776642]
+  Changes in version 0.2.2.38 - 2012-08-12
+  Tor 0.2.2.38 fixes a rare race condition that can crash exit relays;
+  fixes a remotely triggerable crash bug; and fixes a timing attack that
+  could in theory leak path information.  
+  o Security fixes:
+    - Avoid read-from-freed-memory and double-free bugs that could occur
+      when a DNS request fails while launching it.
+      CVE-2012-3517
+    - Avoid an uninitialized memory read when reading a vote or consensus
+      document that has an unrecognized flavor name. This read could
+      lead to a remote crash bug.
+      CVE-2012-3518
+    - Try to leak less information about what relays a client is
+      choosing to a side-channel attacker. Previously, a Tor client would
+      stop iterating through the list of available relays as soon as it
+      had chosen one, thus finishing a little earlier when it picked
+      a router earlier in the list. If an attacker can recover this
+      timing information (nontrivial but not proven to be impossible),
+      they could learn some coarse-grained information about which relays
+      a client was picking (middle nodes in particular are likelier to
+      be affected than exits). The timing attack might be mitigated by
+      other factors, but it's best not to take chances.
+      CVE-2012-3519
+
+-------------------------------------------------------------------
+Fri Jun 15 19:45:01 UTC 2012 - andreas.stie...@gmx.de
+
+- add tor-0.2.2.37-logrotate.patch : add su option to logrotate to
+  fix W: suse-logrotate-user-writable-log-dir in Factory
+
+-------------------------------------------------------------------
+Wed Jun 13 11:22:11 UTC 2012 - andreas.stie...@gmx.de
+
+- update to 0.2.2.37
+  Changes in version 0.2.2.37 - 2012-06-06
+  Tor 0.2.2.37 introduces a workaround for a critical renegotiation
+  bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
+  currently).
+
+  o Major bugfixes:
+    - Work around a bug in OpenSSL that broke renegotiation with TLS
+      1.1 and TLS 1.2. Without this workaround, all attempts to speak
+      the v2 Tor connection protocol when both sides were using OpenSSL
+      1.0.1 would fail. Resolves ticket 6033.
+    - When waiting for a client to renegotiate, don't allow it to add
+      any bytes to the input buffer. This fixes a potential DoS issue.
+      Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
+    - Fix an edge case where if we fetch or publish a hidden service
+      descriptor, we might build a 4-hop circuit and then use that circuit
+      for exiting afterwards -- even if the new last hop doesn't obey our
+      ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
+
+  o Minor bugfixes:
+    - Fix a build warning with Clang 3.1 related to our use of vasprintf.
+      Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
+
+  o Minor features:
+    - Tell GCC and Clang to check for any errors in format strings passed
+      to the tor_v*(print|scan)f functions.
+
+-------------------------------------------------------------------
+Wed Jun  6 20:46:46 UTC 2012 - andreas.stie...@gmx.de
+
+- update to 0.2.2.36
+
+  Changes in version 0.2.2.36 - 2012-05-24
+  o Directory authority changes:
+    - Change IP address for maatuska (v3 directory authority).
+    - Change IP address for ides (v3 directory authority), and rename
+      it to turtles.
+
+  o Security fixes:
+    - When building or running with any version of OpenSSL earlier
+      than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
+      versions have a bug (CVE-2011-4576) in which their block cipher
+      padding includes uninitialized data, potentially leaking sensitive
+      information to any peer with whom they make a SSLv3 connection. Tor
+      does not use SSL v3 by default, but a hostile client or server
+      could force an SSLv3 connection in order to gain information that
+      they shouldn't have been able to get. The best solution here is to
+      upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
+      or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
+      to make sure that the bug can't happen.
+    - Never use a bridge or a controller-supplied node as an exit, even
+      if its exit policy allows it. Found by wanoskarnet. Fixes bug
+      5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
+      and 0.2.0.3-alpha (for bridge-purpose descriptors).
+    - Only build circuits if we have a sufficient threshold of the total
+      descriptors that are marked in the consensus with the "Exit"
+      flag. This mitigates an attack proposed by wanoskarnet, in which
+      all of a client's bridges collude to restrict the exit nodes that
+      the client knows about. Fixes bug 5343.
+    - Provide controllers with a safer way to implement the cookie
+      authentication mechanism. With the old method, if another locally
+      running program could convince a controller that it was the Tor
+      process, then that program could trick the controller into telling
+      it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
+      authentication method uses a challenge-response approach to prevent
+      this attack. Fixes bug 5185; implements proposal 193.
+
+  o Major bugfixes:
+    - Avoid logging uninitialized data when unable to decode a hidden
+      service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
+    - Avoid a client-side assertion failure when receiving an INTRODUCE2
+      cell on a general purpose circuit. Fixes bug 5644; bugfix on
+      0.2.1.6-alpha.
+    - Fix builds when the path to sed, openssl, or sha1sum contains
+      spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
+      on 0.2.2.1-alpha.
+    - Correct our replacements for the timeradd() and timersub() functions
+      on platforms that lack them (for example, Windows). The timersub()
+      function is used when expiring circuits, while timeradd() is
+      currently unused. Bug report and patch by Vektor. Fixes bug 4778;
+      bugfix on 0.2.2.24-alpha.
+    - Fix the SOCKET_OK test that we use to tell when socket
+      creation fails so that it works on Win64. Fixes part of bug 4533;
+      bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
+
+  o Minor bugfixes:
+    - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
+      Fixes bug 5346; bugfix on 0.0.8pre3.
+    - Make our number-parsing functions always treat too-large values
+      as an error, even when those values exceed the width of the
+      underlying type. Previously, if the caller provided these
+      functions with minima or maxima set to the extreme values of the
+      underlying integer type, these functions would return those
+      values on overflow rather than treating overflow as an error.
+      Fixes part of bug 5786; bugfix on 0.0.9.
+    - Older Linux kernels erroneously respond to strange nmap behavior
++++ 1681 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.3:Update/.tor.2503.new/tor.changes

New:
----
  tor-0.2.2.37-logrotate.patch
  tor-0.2.3.25.tar.gz
  tor-0.2.3.x-CVE-2013-7295.patch
  tor.changes
  tor.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tor.spec ++++++
#
# spec file for package tor
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define with_bufferevents 0%{?suse_version} > 1220

Name:           tor
Version:        0.2.3.25
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Anonymizing overlay network for TCP (The onion router)
License:        BSD-3-Clause
Group:          Productivity/Networking/Security
Url:            https://www.torproject.org/
Source:         https://www.torproject.org/dist/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM tor-0.2.2.37-logrotate.patch -- add su to logrotate config 
to fix W: suse-logrotate-user-writable-log-dir
Patch0:         tor-0.2.2.37-logrotate.patch
Patch1:         tor-0.2.3.x-CVE-2013-7295.patch
Requires:       logrotate
BuildRequires:  openssl-devel

%if %with_bufferevents
BuildRequires:  libevent-devel >= 2.0.13
%else
%if 0%{?suse_version} > 1100
BuildRequires:  libevent-devel
%else
BuildRequires:  libevent
%endif
%endif

%define toruser %{name}
%define torgroup %{name}
%define home_dir /var/lib/empty

%description
Tor is a connection-based low-latency anonymous communication system.

This package provides the "tor" program, which serves as both a client and
a relay node. Scripts will automatically create a "%{toruser}" user and
a "%{torgroup}" group, and set tor up to run as a daemon when the system
is rebooted.

Applications connect to the local Tor proxy using the SOCKS
protocol. The tor client chooses a path through a set of relays, in
which each relay knows its predecessor and successor, but no
others. Traffic flowing down the circuit is unwrapped by a symmetric
key at each relay, which reveals the downstream relay.

Warnings: Tor does no protocol cleaning.  That means there is a danger
that application protocols and associated programs can be induced to
reveal information about the initiator. Tor depends on Privoxy or
similar protocol cleaners to solve this problem. This is alpha code,
and is even more likely than released code to have anonymity-spoiling
bugs. The present network is small -- this further reduces the
strength of the anonymity provided. Tor is not presently suitable
for high-stakes anonymity.

%prep
%setup -q
%patch0
%patch1 -p1

%build
%configure \
        --with-tor-user=%{toruser} \
        --with-tor-group=%{torgroup} \
%if %with_bufferevents
        --enable-bufferevents \
%endif
        --docdir=%{_docdir}/%{name}

%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

# missing dirs
%{__install} -d -m 700 \
        %{buildroot}/var/lib/%{name} \
        %{buildroot}/var/tmp/%{name}

%{__install} -d -m 755 \
        %{buildroot}/var/run/%{name} \
        %{buildroot}/var/log/%{name} \
        %{buildroot}/%{_sbindir}

# control script
%__install -p -m 755 contrib/torctl %{buildroot}/%{_bindir}

# sample config file
%__install -p -m 644 src/config/torrc.sample 
%{buildroot}/%{_sysconfdir}/%{name}/torrc.sample

# init script
%__install -D -m 755 contrib/suse/tor.sh %{buildroot}/%{_initrddir}/%{name}
%{__ln_s} -f ../..%{_initrddir}/%{name} %{buildroot}%{_sbindir}/rc%{name}

# logrotate conf
%__sed -i -e "s|_tor|tor|g" contrib/tor.logrotate
%__install -D -m 644 contrib/tor.logrotate 
%{buildroot}/%{_sysconfdir}/logrotate.d/%{name}

%clean
%__rm -rf "%{buildroot}"

%pre
/usr/sbin/groupadd -r %{torgroup} &>/dev/null || :
/usr/sbin/useradd -g %{torgroup} -s /bin/false -r -c "User to run %{name}" -d 
%{home_dir} %{toruser} &>/dev/null || :

%post
%fillup_and_insserv tor

%preun
%stop_on_removal tor

%postun
%insserv_cleanup
%restart_on_update tor

%files
%defattr(-,root,root)
%doc LICENSE README ChangeLog doc/HACKING doc/TODO doc/*.html
%doc %{_mandir}/man*/*
%{_bindir}/%{name}
%{_bindir}/%{name}ctl
%{_bindir}/%{name}ify
%{_bindir}/%{name}-gencert
%{_bindir}/%{name}-resolve
%{_sbindir}/rc%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/geoip
%config %{_initrddir}/%{name}
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
%dir %attr(0755,root,%{torgroup}) %{_sysconfdir}/%{name}
%config(noreplace) %attr(0644,root,%{torgroup}) %{_sysconfdir}/%{name}/*
%attr(0700,%{toruser},%{torgroup}) %dir %{_localstatedir}/lib/%{name}
%ghost %attr(0750,%{toruser},%{torgroup}) %dir %{_localstatedir}/run/%{name}
%attr(0750,%{toruser},%{torgroup}) %dir %{_localstatedir}/log/%{name}

%changelog
++++++ tor-0.2.2.37-logrotate.patch ++++++
Index: contrib/tor.logrotate.in
===================================================================
--- contrib/tor.logrotate.in.orig       2012-05-10 21:00:16.000000000 +0100
+++ contrib/tor.logrotate.in    2012-06-15 20:06:22.000000000 +0100
@@ -7,6 +7,7 @@
        notifempty
        # you may need to change the username/groupname below
        create 0640 _tor _tor
+       su _tor _tor
        sharedscripts
        postrotate
                /etc/init.d/tor reload > /dev/null
++++++ tor-0.2.3.x-CVE-2013-7295.patch ++++++
From: Nick Mathewson <ni...@torproject.org>
Date: Wed, 18 Dec 2013 16:49:44 +0000 (-0500)
Subject: Never allow OpenSSL engines to replace the RAND_SSLeay method
References: https://bugzilla.novell.com/show_bug.cgi?id=859421 
https://gitweb.torproject.org/tor.git/commit/7b87003957530427eadce36ed03b4645b481a335
Upstream: committed

Never allow OpenSSL engines to replace the RAND_SSLeay method

This fixes bug 10402, where the rdrand engine would use the rdrand
instruction, not as an additional entropy source, but as a replacement
for the entire userspace PRNG.  That's obviously stupid: even if you
don't think that RDRAND is a likely security risk, the right response
to an alleged new alleged entropy source is never to throw away all
previously used entropy sources.

Patch adjusted for 0.2.3.25: Difference between removed code in 
log_engine(): log(LOG_NOTICE, [...]) vs log_notice([...]).

---
 src/common/crypto.c |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Index: tor-0.2.3.25/src/common/crypto.c
===================================================================
--- tor-0.2.3.25.orig/src/common/crypto.c       2014-01-20 21:04:58.000000000 
+0000
+++ tor-0.2.3.25/src/common/crypto.c    2014-01-20 21:06:57.000000000 +0000
@@ -193,8 +193,8 @@ log_engine(const char *fn, ENGINE *e)
     const char *name, *id;
     name = ENGINE_get_name(e);
     id = ENGINE_get_id(e);
-    log(LOG_NOTICE, LD_CRYPTO, "Using OpenSSL engine %s [%s] for %s",
-        name?name:"?", id?id:"?", fn);
+    log_notice(LD_CRYPTO, "Default OpenSSL engine for %s is %s [%s]",
+               fn, name?name:"?", id?id:"?");
   } else {
     log(LOG_INFO, LD_CRYPTO, "Using default implementation for %s", fn);
   }
@@ -268,7 +268,7 @@ crypto_global_init(int useAccel, const c
       }
       log_engine("RSA", ENGINE_get_default_RSA());
       log_engine("DH", ENGINE_get_default_DH());
-      log_engine("RAND", ENGINE_get_default_RAND());
+      log_engine("RAND (which we will not use)", ENGINE_get_default_RAND());
       log_engine("SHA1", ENGINE_get_digest_engine(NID_sha1));
       log_engine("3DES", ENGINE_get_cipher_engine(NID_des_ede3_ecb));
       log_engine("AES", ENGINE_get_cipher_engine(NID_aes_128_ecb));
@@ -277,6 +277,13 @@ crypto_global_init(int useAccel, const c
       log_info(LD_CRYPTO, "NOT using OpenSSL engine support.");
     }
 
+    if (RAND_get_rand_method() != RAND_SSLeay()) {
+      log_notice(LD_CRYPTO, "It appears that one of our engines has provided "
+                 "a replacement the OpenSSL RNG. Resetting it to the default "
+                 "implementation.");
+      RAND_set_rand_method(RAND_SSLeay());
+    }
+
     evaluate_evp_for_aes(-1);
     evaluate_ctr_for_aes();
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to