Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
orbea
Tor
Commits
8e590992
Commit
8e590992
authored
3 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.4.5' into maint-0.4.6
parents
7be37a26
200e9a55
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug40392
+4
-0
4 additions, 0 deletions
changes/bug40392
src/feature/hs/hs_descriptor.c
+2
-1
2 additions, 1 deletion
src/feature/hs/hs_descriptor.c
with
6 additions
and
1 deletion
changes/bug40392
0 → 100644
+
4
−
0
View file @
8e590992
o Major bugfixes (security, denial of service, onion services):
- Fix an out-of-bounds memory access in v3 descriptor parsing. Fixes bug
40392; bugfix on 0.3.0.1-alpha. This issue is also tracked as
TROVE-2021-006. Reported by Sergei Glazunov from Google's Project Zero.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/feature/hs/hs_descriptor.c
+
2
−
1
View file @
8e590992
...
...
@@ -136,7 +136,7 @@ static token_rule_t hs_desc_superencrypted_v3_token_table[] = {
/** Descriptor ruleset for the encrypted section. */
static
token_rule_t
hs_desc_encrypted_v3_token_table
[]
=
{
T1_START
(
str_create2_formats
,
R3_CREATE2_FORMATS
,
CONCAT_ARGS
,
NO_OBJ
),
T01
(
str_intro_auth_required
,
R3_INTRO_AUTH_REQUIRED
,
ARGS
,
NO_OBJ
),
T01
(
str_intro_auth_required
,
R3_INTRO_AUTH_REQUIRED
,
GE
(
1
)
,
NO_OBJ
),
T01
(
str_single_onion
,
R3_SINGLE_ONION_SERVICE
,
ARGS
,
NO_OBJ
),
END_OF_TABLE
};
...
...
@@ -2321,6 +2321,7 @@ desc_decode_encrypted_v3(const hs_descriptor_t *desc,
/* Authentication type. It's optional but only once. */
tok
=
find_opt_by_keyword
(
tokens
,
R3_INTRO_AUTH_REQUIRED
);
if
(
tok
)
{
tor_assert
(
tok
->
n_args
>=
1
);
if
(
!
decode_auth_type
(
desc_encrypted_out
,
tok
->
args
[
0
]))
{
log_warn
(
LD_REND
,
"Service descriptor authentication type has "
"invalid entry(ies)."
);
...
...
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