Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
0650bf36
Unverified
Commit
0650bf36
authored
Nov 06, 2019
by
teor
Browse files
Merge remote-tracking branch 'tor-github/pr/1342' into maint-0.2.9
parents
c06d540f
f0e41209
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket31466
0 → 100644
View file @
0650bf36
o Minor bugfixes (logging):
- Rate-limit our the logging message about the obsolete .exit notation.
Previously, there was no limit on this warning, which could potentially
be triggered many times by a hostile website. Fixes bug 31466;
bugfix on 0.2.2.1-alpha.
src/or/connection_edge.c
View file @
0650bf36
...
...
@@ -1186,9 +1186,11 @@ connection_ap_handshake_rewrite(entry_connection_t *conn,
* disallowed when they're coming straight from the client, but you're
* allowed to have them in MapAddress commands and so forth. */
if
(
!
strcmpend
(
socks
->
address
,
".exit"
)
&&
!
options
->
AllowDotExit
)
{
log_warn
(
LD_APP
,
"The
\"
.exit
\"
notation is disabled in Tor due to "
"security risks. Set AllowDotExit in your torrc to enable "
"it (at your own risk)."
);
static
ratelim_t
exit_warning_limit
=
RATELIM_INIT
(
60
*
15
);
log_fn_ratelim
(
&
exit_warning_limit
,
LOG_WARN
,
LD_APP
,
"The
\"
.exit
\"
notation is disabled in Tor due to "
"security risks. Set AllowDotExit in your torrc to enable "
"it (at your own risk)."
);
control_event_client_status
(
LOG_WARN
,
"SOCKS_BAD_HOSTNAME HOSTNAME=%s"
,
escaped
(
socks
->
address
));
out
->
end_reason
=
END_STREAM_REASON_TORPROTOCOL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment