Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Roger Dingledine
Tor
Commits
c1b36488
Commit
c1b36488
authored
10 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
parents
b117a067
3781955f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/bug15515
+4
-0
4 additions, 0 deletions
changes/bug15515
src/or/or.h
+3
-0
3 additions, 0 deletions
src/or/or.h
src/or/rendmid.c
+14
-0
14 additions, 0 deletions
src/or/rendmid.c
with
21 additions
and
0 deletions
changes/bug15515
0 → 100644
+
4
−
0
View file @
c1b36488
o Minor features (DoS-resistance):
- Make it harder for attackers to overwhelm hidden services with
introductions, by blocking multiple introduction requests on the
same circuit. Resolves ticket #15515.
This diff is collapsed.
Click to expand it.
src/or/or.h
+
3
−
0
View file @
c1b36488
...
...
@@ -3181,6 +3181,9 @@ typedef struct or_circuit_t {
* to the specification? */
unsigned
int
remaining_relay_early_cells
:
4
;
/* We have already received an INTRODUCE1 cell on this circuit. */
unsigned
int
already_received_introduce1
:
1
;
/** True iff this circuit was made with a CREATE_FAST cell. */
unsigned
int
is_first_hop
:
1
;
...
...
This diff is collapsed.
Click to expand it.
src/or/rendmid.c
+
14
−
0
View file @
c1b36488
...
...
@@ -149,6 +149,20 @@ rend_mid_introduce(or_circuit_t *circ, const uint8_t *request,
goto
err
;
}
/* We have already done an introduction on this circuit but we just
received a request for another one. We block it since this might
be an attempt to DoS a hidden service (#15515). */
if
(
circ
->
already_received_introduce1
)
{
log_fn
(
LOG_PROTOCOL_WARN
,
LD_REND
,
"Blocking multiple introductions on the same circuit. "
"Someone might be trying to attack a hidden service through "
"this relay."
);
circuit_mark_for_close
(
TO_CIRCUIT
(
circ
),
END_CIRC_REASON_TORPROTOCOL
);
return
-
1
;
}
circ
->
already_received_introduce1
=
1
;
/* We could change this to MAX_HEX_NICKNAME_LEN now that 0.0.9.x is
* obsolete; however, there isn't much reason to do so, and we're going
* to revise this protocol anyway.
...
...
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