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
6061cd58
Commit
6061cd58
authored
12 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.2.3'
parents
ed2601f2
c32ec9c4
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
+8
-0
8 additions, 0 deletions
changes/bug6252
src/or/relay.c
+14
-0
14 additions, 0 deletions
src/or/relay.c
with
22 additions
and
0 deletions
changes/bug6252
0 → 100644
+
8
−
0
View file @
6061cd58
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.
This diff is collapsed.
Click to expand it.
src/or/relay.c
+
14
−
0
View file @
6061cd58
...
...
@@ -1265,11 +1265,25 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
case
RELAY_COMMAND_SENDME
:
if
(
!
conn
)
{
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