Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jarl
tor
Commits
de656474
Commit
de656474
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.2.8' into maint-0.2.9
parents
169a93ff
c11de4c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/bug21018
+11
-0
11 additions, 0 deletions
changes/bug21018
src/or/rendcache.c
+3
-1
3 additions, 1 deletion
src/or/rendcache.c
src/or/routerparse.c
+3
-3
3 additions, 3 deletions
src/or/routerparse.c
with
17 additions
and
4 deletions
changes/bug21018
0 → 100644
+
11
−
0
View file @
de656474
o Major bugfixes (parsing, security):
- Fix a bug in parsing that could cause clients to read a single
byte past the end of an allocated region. This bug could be
used to cause hardened clients (built with
--enable-expensive-hardening) to crash if they tried to visit
a hostile hidden service. Non-hardened clients are only
affected depending on the details of their platform's memory
allocator. Fixes bug 21018; bugfix on 0.2.0.8-alpha. Found by
using libFuzzer. Also tracked as TROVE-2016-12-002 and as
CVE-2016-1254.
This diff is collapsed.
Click to expand it.
src/or/rendcache.c
+
3
−
1
View file @
de656474
...
...
@@ -915,7 +915,9 @@ rend_cache_store_v2_desc_as_client(const char *desc,
if
(
n_intro_points
<=
0
)
{
log_warn
(
LD_REND
,
"Failed to parse introduction points. Either the "
"service has published a corrupt descriptor or you have "
"provided invalid authorization data."
);
"provided invalid authorization data, or (maybe!) the "
"server is deliberately serving broken data in an attempt "
"to crash you with bug 21018."
);
goto
err
;
}
else
if
(
n_intro_points
>
MAX_INTRO_POINTS
)
{
log_warn
(
LD_REND
,
"Found too many introduction points on a hidden "
...
...
This diff is collapsed.
Click to expand it.
src/or/routerparse.c
+
3
−
3
View file @
de656474
...
...
@@ -4946,7 +4946,7 @@ get_next_token(memarea_t *area,
if
(
tok
->
tp
==
ERR_
)
{
/* No keyword matched; call it an "K_opt" or "A_unrecognized" */
if
(
**
s
==
'@'
)
if
(
*
s
<
eol
&&
**
s
==
'@'
)
tok
->
tp
=
A_UNKNOWN_
;
else
tok
->
tp
=
K_OPT
;
...
...
@@ -5995,7 +5995,7 @@ rend_decrypt_introduction_points(char **ipos_decrypted,
crypto_cipher_free
(
cipher
);
len
=
ipos_encrypted_size
-
2
-
client_entries_len
-
CIPHER_IV_LEN
;
dec
=
tor_malloc
(
len
);
dec
=
tor_malloc
_zero
(
len
+
1
);
declen
=
crypto_cipher_decrypt_with_iv
(
session_key
,
dec
,
len
,
ipos_encrypted
+
2
+
client_entries_len
,
ipos_encrypted_size
-
2
-
client_entries_len
);
...
...
@@ -6027,7 +6027,7 @@ rend_decrypt_introduction_points(char **ipos_decrypted,
"small."
);
return
-
1
;
}
dec
=
tor_malloc_zero
(
ipos_encrypted_size
-
CIPHER_IV_LEN
-
1
);
dec
=
tor_malloc_zero
(
ipos_encrypted_size
-
CIPHER_IV_LEN
-
1
+
1
);
declen
=
crypto_cipher_decrypt_with_iv
(
descriptor_cookie
,
dec
,
ipos_encrypted_size
-
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment