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
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
0b211700
Commit
0b211700
authored
12 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/maint-0.2.3'
parents
0ea3a3a7
91b52a25
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/bug6252_again
+11
-0
11 additions, 0 deletions
changes/bug6252_again
src/or/relay.c
+14
-0
14 additions, 0 deletions
src/or/relay.c
with
25 additions
and
0 deletions
changes/bug6252_again
0 → 100644
+
11
−
0
View file @
0b211700
o Security fixes:
- Tear down the circuit if we get an unexpected SENDME cell. Clients
could use this trick to make their circuits receive cells faster
than our flow control would have allowed, or to gum up the network,
or possibly to do targeted memory denial-of-service attacks on
entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
from July 2002, before the release of Tor 0.0.0. We had committed
this patch previously, but we had to revert it because of bug 6271.
Now that 6271 is fixed, this appears to work.
This diff is collapsed.
Click to expand it.
src/or/relay.c
+
14
−
0
View file @
0b211700
...
...
@@ -1265,11 +1265,25 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
case
RELAY_COMMAND_SENDME
:
if
(
!
rh
.
stream_id
)
{
if
(
layer_hint
)
{
if
(
layer_hint
->
package_window
+
CIRCWINDOW_INCREMENT
>
CIRCWINDOW_START_MAX
)
{
log_fn
(
LOG_PROTOCOL_WARN
,
LD_PROTOCOL
,
"Bug/attack: unexpected sendme cell from exit relay. "
"Closing circ."
);
return
-
END_CIRC_REASON_TORPROTOCOL
;
}
layer_hint
->
package_window
+=
CIRCWINDOW_INCREMENT
;
log_debug
(
LD_APP
,
"circ-level sendme at origin, packagewindow %d."
,
layer_hint
->
package_window
);
circuit_resume_edge_reading
(
circ
,
layer_hint
);
}
else
{
if
(
circ
->
package_window
+
CIRCWINDOW_INCREMENT
>
CIRCWINDOW_START_MAX
)
{
log_fn
(
LOG_PROTOCOL_WARN
,
LD_PROTOCOL
,
"Bug/attack: unexpected sendme cell from client. "
"Closing circ."
);
return
-
END_CIRC_REASON_TORPROTOCOL
;
}
circ
->
package_window
+=
CIRCWINDOW_INCREMENT
;
log_debug
(
LD_APP
,
"circ-level sendme at non-origin, packagewindow %d."
,
...
...
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