]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
11 years agoFill in the list of blacklisted signing keys.
Nick Mathewson [Mon, 14 Apr 2014 20:03:53 +0000 (16:03 -0400)] 
Fill in the list of blacklisted signing keys.

I used a list of certificate files from arma, and a little script,
both at 11464.

11 years agoCode to blacklist authority signing keys
Nick Mathewson [Fri, 11 Apr 2014 14:22:14 +0000 (10:22 -0400)] 
Code to blacklist authority signing keys

(I need a list of actual signing keys to blacklist.)

11 years agoFix geoip by falling back to registered countries.
Karsten Loesing [Tue, 25 Feb 2014 12:28:34 +0000 (13:28 +0100)] 
Fix geoip by falling back to registered countries.

See 1d2179bc900f1646a5491b65294e78b175e70056 in master for details.

"""
Fall back to registered country if necessary.

When extracting geoip and geoip6 files from MaxMind's GeoLite2 Country
database, we only look at country->iso_code which is the two-character ISO
3166-1 country code of the country where MaxMind believes the end user is
located.

But if MaxMind thinks a range belongs to anonymous proxies, they don't put
anything there.  Hence, we omit those ranges and resolve them all to '??'.
That's not what we want.

What we should do is first try country->iso_code, and if there's no such
key, try registered_country->iso_code which is the country in which the
ISP has registered the IP address.

In short: let's fill all A1 entries with what ARIN et. al think.
"""

11 years agoMerge remote-tracking branch 'karsten/geoip-feb2014' into maint-0.2.3
Nick Mathewson [Sat, 15 Feb 2014 05:06:01 +0000 (00:06 -0500)] 
Merge remote-tracking branch 'karsten/geoip-feb2014' into maint-0.2.3

11 years agoUpdate to the February 2014 GeoIP database.
Karsten Loesing [Sat, 8 Feb 2014 11:09:37 +0000 (12:09 +0100)] 
Update to the February 2014 GeoIP database.

11 years agoMerge branch 'bug9093_023' into maint-0.2.3
Nick Mathewson [Fri, 15 Nov 2013 20:23:51 +0000 (15:23 -0500)] 
Merge branch 'bug9093_023' into maint-0.2.3

12 years agoImproved circuit queue out-of-memory handler
Nick Mathewson [Thu, 7 Nov 2013 17:15:30 +0000 (12:15 -0500)] 
Improved circuit queue out-of-memory handler

Previously, when we ran low on memory, we'd close whichever circuits
had the most queued cells. Now, we close those that have the
*oldest* queued cells, on the theory that those are most responsible
for us running low on memory, and that those are the least likely to
actually drain on their own if we wait a little longer.

Based on analysis from a forthcoming paper by Jansen, Tschorsch,
Johnson, and Scheuermann. Fixes bug 9093.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 11 Oct 2013 15:16:45 +0000 (11:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the October 2013 GeoIP database. maint-0.2.2
Karsten Loesing [Fri, 11 Oct 2013 11:36:30 +0000 (13:36 +0200)] 
Update to the October 2013 GeoIP database.

12 years agoFix unit test for format_helper_exit_status
Nick Mathewson [Thu, 10 Oct 2013 15:15:35 +0000 (11:15 -0400)] 
Fix unit test for format_helper_exit_status

Fix format_helper_exit_status to allow full HEX_ERRNO_SIZE answers,
*and* increase the buffer length again.

12 years agoMerge remote-tracking branch 'public/bug9928' into maint-0.2.3
Nick Mathewson [Thu, 10 Oct 2013 14:53:27 +0000 (10:53 -0400)] 
Merge remote-tracking branch 'public/bug9928' into maint-0.2.3

12 years agoGive credit to bug reporter for 9928
Nick Mathewson [Tue, 8 Oct 2013 16:06:06 +0000 (12:06 -0400)] 
Give credit to bug reporter for 9928

12 years agoRaise buffer size, fix checks for format_exit_helper_status.
Nick Mathewson [Tue, 8 Oct 2013 15:13:21 +0000 (11:13 -0400)] 
Raise buffer size, fix checks for format_exit_helper_status.

This is probably not an exploitable bug, since you would need to have
errno be a large negative value in the unix pluggable-transport launcher
case.  Still, best avoided.

Fixes bug 9928; bugfix on 0.2.3.18-rc.

12 years agoFix an assert when disabling ORPort with accounting disabled.
Nick Mathewson [Wed, 18 Sep 2013 14:26:32 +0000 (10:26 -0400)] 
Fix an assert when disabling ORPort with accounting disabled.

The problem was that the server_identity_key_is_set() function could
return true under conditions where we don't really have an identity
key -- specifically, where we used to have one, but we stopped being a
server.

This is a fix for 6979; bugfix on 0.2.2.18-alpha where we added that
assertion to get_server_identity_key().

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 16 Sep 2013 16:46:50 +0000 (12:46 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the September 2013 GeoIP database.
Karsten Loesing [Tue, 10 Sep 2013 13:00:06 +0000 (15:00 +0200)] 
Update to the September 2013 GeoIP database.

12 years agoMerge branch 'bug9671_023' into maint-0.2.3
Nick Mathewson [Wed, 4 Sep 2013 20:04:47 +0000 (16:04 -0400)] 
Merge branch 'bug9671_023' into maint-0.2.3

12 years agouse !cbt_disabled in place of LearnCBT to avoid needless circs
Nick Mathewson [Wed, 4 Sep 2013 19:51:13 +0000 (15:51 -0400)] 
use !cbt_disabled in place of LearnCBT to avoid needless circs

This would make us do testing circuits "even when cbt is disabled by
consensus, or when we're a directory authority, or when we've failed
to write cbt history to our state file lately." (Roger's words.)

This is a fix for 9671 and an improvement in our fix for 5049.
The original misbehavior was in 0.2.2.14-alpha; the incomplete
fix was in 0.2.3.17-beta.

12 years agoMerge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3
Nick Mathewson [Sun, 25 Aug 2013 04:32:27 +0000 (00:32 -0400)] 
Merge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3

12 years agoMerge remote-tracking branch 'public/bug9564' into maint-0.2.3
Nick Mathewson [Fri, 23 Aug 2013 00:46:40 +0000 (20:46 -0400)] 
Merge remote-tracking branch 'public/bug9564' into maint-0.2.3

12 years agoReplace return with continue in update_consensus_networkstatus_downloads
Nick Mathewson [Thu, 22 Aug 2013 14:00:37 +0000 (10:00 -0400)] 
Replace return with continue in update_consensus_networkstatus_downloads

Fix for bug 9564; bugfix on 0.2.3.14-alpha.

12 years agoMake bridges send AUTH_CHALLENGE cells
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)] 
Make bridges send AUTH_CHALLENGE cells

The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.

Fixes bug 9546; bugfix on 0.2.3.6-alpha.

12 years agoSend NETINFO on receiving a NETINFO if we have not yet sent one.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)] 
Send NETINFO on receiving a NETINFO if we have not yet sent one.

(Backport to Tor 0.2.3)

Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE.  But bridges, when receiving a
connection, would never send AUTH_CHALLENGE.  So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.

Fixes bug 9546.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 12 Aug 2013 13:44:36 +0000 (09:44 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the August 2013 GeoIP database.
Karsten Loesing [Mon, 12 Aug 2013 13:26:22 +0000 (15:26 +0200)] 
Update to the August 2013 GeoIP database.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 8 Jul 2013 13:22:00 +0000 (09:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the July 2013 GeoIP database.
Karsten Loesing [Mon, 8 Jul 2013 08:21:28 +0000 (10:21 +0200)] 
Update to the July 2013 GeoIP database.

12 years agoFix some problems with the bug9002 fix.
Nick Mathewson [Tue, 18 Jun 2013 15:54:57 +0000 (11:54 -0400)] 
Fix some problems with the bug9002 fix.

Fixes bug 9090; bug not in any released Tor.

12 years agoMerge branch 'bug9063_redux_023_squashed' into maint-0.2.3
Nick Mathewson [Tue, 18 Jun 2013 14:16:47 +0000 (10:16 -0400)] 
Merge branch 'bug9063_redux_023_squashed' into maint-0.2.3

12 years agoImplement a real OOM-killer for too-long circuit queues.
Nick Mathewson [Sun, 16 Jun 2013 13:55:44 +0000 (09:55 -0400)] 
Implement a real OOM-killer for too-long circuit queues.

This implements "algorithm 1" from my discussion of bug #9072: on OOM,
find the circuits with the longest queues, and kill them.  It's also a
fix for #9063 -- without the side-effects of bug #9072.

The memory bounds aren't perfect here, and you need to be sure to
allow some slack for the rest of Tor's usage.

This isn't a perfect fix; the rest of the solutions I describe on
codeable.

12 years agoLimit hidden service descriptors to at most 10 guard nodes.
Nick Mathewson [Mon, 17 Jun 2013 00:23:33 +0000 (20:23 -0400)] 
Limit hidden service descriptors to at most 10 guard nodes.

Fixes bug 9002; bugfix on 0.1.1.11-alpha (which introduced guard
nodes), or on 0.0.6pre1 (which introduced hidden services).

12 years agoDisable middle relay queue overfill detection code due to possible guard discovery...
Andrea Shepard [Sat, 15 Jun 2013 09:16:00 +0000 (02:16 -0700)] 
Disable middle relay queue overfill detection code due to possible guard discovery attack

12 years agoMerge branch 'circuit_queue_cap-0.2.3-squashed' into maint-0.2.3
Nick Mathewson [Fri, 14 Jun 2013 05:44:46 +0000 (01:44 -0400)] 
Merge branch 'circuit_queue_cap-0.2.3-squashed' into maint-0.2.3

12 years agoIncrease the limit so leaky pipe might work
Nick Mathewson [Fri, 14 Jun 2013 05:35:21 +0000 (01:35 -0400)] 
Increase the limit so leaky pipe might work

12 years agoDon't queue more cells as a middle relay than the spec allows to be in flight
Andrea Shepard [Fri, 14 Jun 2013 03:41:00 +0000 (20:41 -0700)] 
Don't queue more cells as a middle relay than the spec allows to be in flight

12 years agoMerge branch 'bug9017' into maint-0.2.3
Nick Mathewson [Mon, 10 Jun 2013 16:25:14 +0000 (12:25 -0400)] 
Merge branch 'bug9017' into maint-0.2.3

12 years agoFix (Open?)BSD fast-connect bug with optimistic data.
Nick Mathewson [Mon, 10 Jun 2013 16:14:49 +0000 (12:14 -0400)] 
Fix (Open?)BSD fast-connect bug with optimistic data.

There's an assertion failure that can occur if a connection has
optimistic data waiting, and then the connect() call returns 0 on the
first attempt (rather than -1 and EINPROGRESS).  That latter behavior
from connect() appears to be an (Open?)BSDism when dealing with remote
addresses in some cases. (At least, I've only seen it reported with
the BSDs under libevent, even when the address was 127.0.0.1.  And
we've only seen this problem in Tor with OpenBSD.)

Fixes bug 9017; bugfix on 0.2.3.1-alpha, which first introduced
optimistic data. (Although you could also argue that the commented-out
connection_start_writing in 155c9b80 back in 2002 is the real source
of the issue.)

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Wed, 5 Jun 2013 15:22:02 +0000 (11:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the June 2013 GeoIP database.
Karsten Loesing [Wed, 5 Jun 2013 06:43:03 +0000 (08:43 +0200)] 
Update to the June 2013 GeoIP database.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 20 May 2013 16:34:59 +0000 (12:34 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the May 2013 GeoIP database.
Karsten Loesing [Mon, 13 May 2013 13:37:43 +0000 (15:37 +0200)] 
Update to the May 2013 GeoIP database.

12 years agoMerge branch 'bug8844_v2' into maint-0.2.3
Nick Mathewson [Thu, 9 May 2013 17:14:22 +0000 (13:14 -0400)] 
Merge branch 'bug8844_v2' into maint-0.2.3

12 years agoDon't run off the end of the array-of-freelists
Nick Mathewson [Wed, 8 May 2013 16:04:18 +0000 (12:04 -0400)] 
Don't run off the end of the array-of-freelists

This is a fix for bug 8844, where eugenis correctly notes that there's
a sentinel value at the end of the list-of-freelists that's never
actually checked.  It's a bug since the first version of the chunked
buffer code back in 0.2.0.16-alpha.

This would probably be a crash bug if it ever happens, but nobody's
ever reported something like this, so I'm unsure whether it can occur.
It would require write_to_buf, write_to_buf_zlib, read_to_buf, or
read_to_buf_tls to get an input size of more than 32K.  Still, it's a
good idea to fix this kind of thing!

12 years agoAvoid busy-looping on WANTREAD within connection_handle_write
Nick Mathewson [Wed, 10 Apr 2013 23:30:41 +0000 (19:30 -0400)] 
Avoid busy-looping on WANTREAD within connection_handle_write

Fix for bug 5650.  Also, if we get a WANTREAD while reading while
writing, make sure we're reading.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 8 Apr 2013 15:09:26 +0000 (11:09 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the April 2013 GeoIP database.
Karsten Loesing [Mon, 8 Apr 2013 10:18:00 +0000 (12:18 +0200)] 
Update to the April 2013 GeoIP database.

12 years agoMerge remote-tracking branch 'public/bug8377' into maint-0.2.3
Nick Mathewson [Mon, 18 Mar 2013 19:27:50 +0000 (15:27 -0400)] 
Merge remote-tracking branch 'public/bug8377' into maint-0.2.3

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 11 Mar 2013 17:32:01 +0000 (13:32 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the March 2013 GeoIP database.
Karsten Loesing [Thu, 7 Mar 2013 19:58:31 +0000 (20:58 +0100)] 
Update to the March 2013 GeoIP database.

12 years agoAdd unit test for tor_addr_is_loopback
Nick Mathewson [Fri, 1 Mar 2013 17:40:41 +0000 (12:40 -0500)] 
Add unit test for tor_addr_is_loopback

12 years agoMake sure that [::1] is recognized as a private address
Nick Mathewson [Fri, 1 Mar 2013 17:22:57 +0000 (12:22 -0500)] 
Make sure that [::1] is recognized as a private address

Fixes bug 8377; bugfix on 0.2.1.3-alpha.

12 years agooops; add a missing semicolon
Nick Mathewson [Mon, 11 Feb 2013 21:17:33 +0000 (16:17 -0500)] 
oops; add a missing semicolon

(Cherry-picked from fc35ee4910326dc1ae718482b30e57666a71df85)

12 years agoCheck whether ei is non-NULL before altering it.
Nick Mathewson [Mon, 11 Feb 2013 21:05:03 +0000 (16:05 -0500)] 
Check whether ei is non-NULL before altering it.

This fixes a crash bug if we fail to generate an extrainfo
descriptor.

Fixes bug 8208; bugfix on 0.2.3.16-alpha.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 8 Feb 2013 15:36:34 +0000 (10:36 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoUpdate to the February 2013 GeoIP database.
Karsten Loesing [Fri, 8 Feb 2013 13:37:58 +0000 (14:37 +0100)] 
Update to the February 2013 GeoIP database.

12 years agoMerge branch 'bug7889_023' into maint-0.2.3
Nick Mathewson [Tue, 15 Jan 2013 21:30:07 +0000 (16:30 -0500)] 
Merge branch 'bug7889_023' into maint-0.2.3

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Mon, 14 Jan 2013 19:24:19 +0000 (14:24 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoReject create/begin/etc cells with {circ,stream}ID 0.
Nick Mathewson [Mon, 14 Jan 2013 19:02:13 +0000 (14:02 -0500)] 
Reject create/begin/etc cells with {circ,stream}ID 0.

Otherwise, it's possible to create streams or circuits with these
bogus IDs, leading to orphaned circuits or streams, or to ones that
can cause bandwidth DOS problems.

Fixes bug 7889; bugfix on all released Tors.

12 years agoUpdate to the January 2013 GeoIP database.
Karsten Loesing [Sat, 5 Jan 2013 07:18:26 +0000 (08:18 +0100)] 
Update to the January 2013 GeoIP database.

12 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Thu, 13 Dec 2012 17:51:28 +0000 (12:51 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

12 years agoAdd link explaining how the geoip file was created.
Karsten Loesing [Thu, 13 Dec 2012 07:45:25 +0000 (08:45 +0100)] 
Add link explaining how the geoip file was created.

12 years agoUpdate to the December 2012 GeoIP database.
Karsten Loesing [Thu, 6 Dec 2012 10:29:47 +0000 (11:29 +0100)] 
Update to the December 2012 GeoIP database.

12 years agoUpdate to the November 2012 GeoIP database.
Karsten Loesing [Wed, 28 Nov 2012 02:26:52 +0000 (21:26 -0500)] 
Update to the November 2012 GeoIP database.

12 years agouse a more logical operator
Roger Dingledine [Tue, 13 Nov 2012 04:47:21 +0000 (23:47 -0500)] 
use a more logical operator

Fix a harmless bug when opting against publishing a relay descriptor
because DisableNetwork is set.

Fixes bug 7464; bugfix on 0.2.3.9-alpha.

13 years agoTurn a memwipe in tor_process_handle_destroy() back to memset
Nick Mathewson [Fri, 9 Nov 2012 00:59:54 +0000 (19:59 -0500)] 
Turn a memwipe in tor_process_handle_destroy() back to memset

It broke linking on tor-resolve.c, and it's not actually sanitizing
anything sensitive.  Fix for bug 7420; bug not on ony released Tor.

13 years agoMerge branch 'bug7352_023_rebased' into maint-0.2.3
Nick Mathewson [Thu, 8 Nov 2012 21:45:46 +0000 (16:45 -0500)] 
Merge branch 'bug7352_023_rebased' into maint-0.2.3

13 years agoAdd and use and unlikely-to-be-eliminated memwipe()
Nick Mathewson [Wed, 7 Nov 2012 21:09:58 +0000 (16:09 -0500)] 
Add and use and unlikely-to-be-eliminated memwipe()

Apparently some compilers like to eliminate memset() operations on
data that's about to go out-of-scope.  I've gone with the safest
possible replacement, which might be a bit slow.  I don't think this
is critical path in any way that will affect performance, but if it
is, we can work on that in 0.2.4.

Fixes bug 7352.

13 years agoFix a remotely triggerable assertion failure (CVE-2012-2250)
Nick Mathewson [Wed, 24 Oct 2012 02:58:38 +0000 (22:58 -0400)] 
Fix a remotely triggerable assertion failure (CVE-2012-2250)

If we completed the handshake for the v2 link protocol but wound up
negotiating the wong protocol version, we'd become so confused about
what part of the handshake we were in that we'd promptly die with an
assertion.

This is a fix for CVE-2012-2250; it's a bugfix on 0.2.3.6-alpha.
All servers running that version or later should really upgrade.

Bug and fix from "some guy from France."  I tweaked his code slightly
to make it log the IP of the offending node.

13 years agoMake unit test for bug7191 work with new smartlist_new() name
Nick Mathewson [Wed, 24 Oct 2012 01:49:46 +0000 (21:49 -0400)] 
Make unit test for bug7191 work with new smartlist_new() name

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Wed, 24 Oct 2012 01:48:50 +0000 (21:48 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

13 years agoAdd some unit tests for smartlist_bsearch_idx() on short lists
Andrea Shepard [Tue, 23 Oct 2012 21:28:19 +0000 (14:28 -0700)] 
Add some unit tests for smartlist_bsearch_idx() on short lists

Conflicts:
src/test/test_containers.c

13 years agoAdd a changes file for bug 7191.
Nick Mathewson [Wed, 24 Oct 2012 01:31:42 +0000 (21:31 -0400)] 
Add a changes file for bug 7191.

13 years agoFix binary search on lists of 0 or 1 element.
Nick Mathewson [Tue, 23 Oct 2012 21:12:37 +0000 (17:12 -0400)] 
Fix binary search on lists of 0 or 1 element.

The implementation we added has a tendency to crash with lists of 0 or
one element.  That can happen if we get a consensus vote, v2
consensus, consensus, or geoip file with 0 or 1 element.  There's a
DOS opportunity there that authorities could exploit against one
another, and which an evil v2 authority could exploit against anything
downloading v2 directory information..

This fix is minimalistic: It just adds a special-case for 0- and
1-element lists.  For 0.2.4 (the current alpha series) we'll want a
better patch.

This is bug 7191; it's a fix on 0.2.0.10-alpha.

13 years agoLet 0.2.3 clients exit to internal addresses if they want
Roger Dingledine [Mon, 22 Oct 2012 19:45:39 +0000 (15:45 -0400)] 
Let 0.2.3 clients exit to internal addresses if they want

Clients now consider the ClientRejectInternalAddresses config option
when using a microdescriptor consensus stanza to decide whether
an exit relay would allow exiting to an internal address. Fixes
bug 7190; bugfix on 0.2.3.1-alpha.

13 years agoFix parse_short_policy (bug 7192.)
Nick Mathewson [Mon, 22 Oct 2012 21:34:05 +0000 (17:34 -0400)] 
Fix parse_short_policy (bug 7192.)

Our implementation of parse_short_policy was screwed up: it would
ignore the last character of every short policy.  Obviously, that's
broken.

This patch fixes the busted behavior, and adds a bunch of unit tests
to make sure the rest of that function is okay.

Fixes bug 7192; fix on 0.2.3.1-alpha.

13 years agoadd a unit test to expose bug 7192
Roger Dingledine [Mon, 22 Oct 2012 21:09:43 +0000 (17:09 -0400)] 
add a unit test to expose bug 7192

13 years agoMerge branch 'block_renegotiate_023' into maint-0.2.3
Nick Mathewson [Fri, 19 Oct 2012 18:30:31 +0000 (14:30 -0400)] 
Merge branch 'block_renegotiate_023' into maint-0.2.3

13 years agoMerge branch 'bug7149' into maint-0.2.3
Nick Mathewson [Fri, 19 Oct 2012 07:02:57 +0000 (03:02 -0400)] 
Merge branch 'bug7149' into maint-0.2.3

13 years agoDon't serve or accept v2 HS descs over a DirPort
Robert Ransom [Tue, 11 Sep 2012 20:00:05 +0000 (13:00 -0700)] 
Don't serve or accept v2 HS descs over a DirPort

(changes file tweaked by nickm)

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Fri, 19 Oct 2012 04:58:33 +0000 (00:58 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

13 years agoDisable TLS Session Tickets, which we were apparently getting for free
Nick Mathewson [Wed, 17 Oct 2012 23:57:27 +0000 (19:57 -0400)] 
Disable TLS Session Tickets, which we were apparently getting for free

OpenSSL 1.0.0 added an implementation of TLS session tickets, a
"feature" that let session resumption occur without server-side state
by giving clients an encrypted "ticket" that the client could present
later to get the session going again with the same keys as before.
OpenSSL was giving the keys to decrypt these tickets the lifetime of
the SSL contexts, which would have been terrible for PFS if we had
long-lived SSL contexts.  Fortunately, we don't.  Still, it's pretty
bad.  We should also drop these, since our use of the extension stands
out with our non-use of session cacheing.

Found by nextgens. Bugfix on all versions of Tor when built with
openssl 1.0.0 or later.  Fixes bug 7139.

13 years agoDiscard extraneous renegotiation attempts in the v3 link protocol
Nick Mathewson [Tue, 16 Oct 2012 16:55:50 +0000 (12:55 -0400)] 
Discard extraneous renegotiation attempts in the v3 link protocol

Failure to do so left us open to a remotely triggerable assertion
failure. Fixes CVE-2012-2249; bugfix on 0.2.3.6-alpha. Reported by
"some guy from France".

13 years agoMerge branch 'bug7014_023_squashed' into maint-0.2.3
Nick Mathewson [Wed, 10 Oct 2012 03:46:56 +0000 (23:46 -0400)] 
Merge branch 'bug7014_023_squashed' into maint-0.2.3

13 years agoDon't call fmt_addr() twice in a parameter list.
George Kadianakis [Fri, 5 Oct 2012 00:54:29 +0000 (20:54 -0400)] 
Don't call fmt_addr() twice in a parameter list.

13 years agoMerge remote-tracking branch 'arma/bug7037' into maint-0.2.3
Nick Mathewson [Thu, 4 Oct 2012 16:46:33 +0000 (12:46 -0400)] 
Merge remote-tracking branch 'arma/bug7037' into maint-0.2.3

13 years agoRefuse extra create cells with reason "resource limit"
Roger Dingledine [Thu, 4 Oct 2012 00:17:37 +0000 (20:17 -0400)] 
Refuse extra create cells with reason "resource limit"

In the past we had used reason "internal", which is more vague than
it needs to be. Resolves bug 7037.

13 years agoproperly free the return values of rate_limit_log()
Roger Dingledine [Wed, 3 Oct 2012 17:15:27 +0000 (13:15 -0400)] 
properly free the return values of rate_limit_log()

resolves bug 7022.

13 years agoadd faravahar as our ninth v3 dir auth
Roger Dingledine [Sat, 22 Sep 2012 13:10:37 +0000 (09:10 -0400)] 
add faravahar as our ninth v3 dir auth

13 years agoClarify that hidden services are TCP only
Nick Mathewson [Wed, 19 Sep 2012 12:18:19 +0000 (08:18 -0400)] 
Clarify that hidden services are TCP only

Also remove some trailing whitespace.

Patch from maker; fixes bug 6024.

13 years agoWhitespace fixes
Nick Mathewson [Tue, 18 Sep 2012 20:16:17 +0000 (16:16 -0400)] 
Whitespace fixes

13 years agoBug 6866: Convert pathbias asserts into log messages.
Mike Perry [Tue, 18 Sep 2012 01:25:28 +0000 (18:25 -0700)] 
Bug 6866: Convert pathbias asserts into log messages.

Asserts were hit by Tor2Web mode.

13 years agoUse file-size-fixup code on cygwin too.
Nick Mathewson [Fri, 14 Sep 2012 16:37:17 +0000 (12:37 -0400)] 
Use file-size-fixup code on cygwin too.

We already had code on windows to fix our file sizes when we're
reading a file in text mode and its size doesn't match the size from
fstat.  But that code was only enabled when _WIN32 was defined, and
Cygwin defines __CYGWIN__ instead.

Fixes bug 6844; bugfix on 0.1.2.7-alpha.

13 years agoFix man page typo
Robert Ransom [Fri, 14 Sep 2012 06:25:03 +0000 (23:25 -0700)] 
Fix man page typo

13 years agomention the bug number in the 6827 changes file
Nick Mathewson [Thu, 13 Sep 2012 14:07:06 +0000 (10:07 -0400)] 
mention the bug number in the 6827 changes file

13 years agoAvoid undefined behaviour when parsing HS protocol versions
Robert Ransom [Thu, 13 Sep 2012 11:39:39 +0000 (07:39 -0400)] 
Avoid undefined behaviour when parsing HS protocol versions

Fixes bug 6827; bugfix on c58675ca728f12b42f65e5b8964ae695c2e0ec2d
(when the v2 HS desc parser was implemented).

Found by asn.

13 years agoRevert "6819: typo in torrc.sample.in"
Nick Mathewson [Wed, 12 Sep 2012 19:37:47 +0000 (15:37 -0400)] 
Revert "6819: typo in torrc.sample.in"

This reverts commit 4aff97cfc7965414ad8506ce28a296da1bc4a161.

We don't actually want to be changing the torrc.sample on stable or
near-stable stuff, since doing so makes pointless busywork for debian
users.

13 years agoMerge remote-tracking branch 'public/bug6341_a_v2' into maint-0.2.3
Nick Mathewson [Wed, 12 Sep 2012 15:10:59 +0000 (11:10 -0400)] 
Merge remote-tracking branch 'public/bug6341_a_v2' into maint-0.2.3

13 years ago6819: typo in torrc.sample.in
Nick Mathewson [Wed, 12 Sep 2012 15:08:30 +0000 (11:08 -0400)] 
6819: typo in torrc.sample.in

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Nick Mathewson [Tue, 11 Sep 2012 17:20:15 +0000 (13:20 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3

Conflicts:
src/test/test_util.c

13 years agoMerge branch 'timegm_assert_v3_squashed' into maint-0.2.2
Nick Mathewson [Tue, 11 Sep 2012 17:14:43 +0000 (13:14 -0400)] 
Merge branch 'timegm_assert_v3_squashed' into maint-0.2.2