|
Cause:
To prevent a malicious client from guessing the PIN by spamming the host with bogus logins, the chromoting host can throttle incoming requests after too many unsuccessful login attempts. In the current implementation, every time when there is an incoming request, we start incrementing the bad login counter, regardless of whether the host has actually starts authenticating.
Fix:
This change adds an extra flag on the authenticator to indicate whether authentication has started.
The JingleSession checks the flag and progagates the message back all the way up to the host through the callback Session::OnSessionAuthenticationBegin
BUG= 350208
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262228
Total comments: 18
Total comments: 22
Total comments: 13
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+332 lines, -49 lines) |
Patch |
 |
M |
remoting/host/chromoting_host.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/host/chromoting_host.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+16 lines, -6 lines |
0 comments
|
Download
|
 |
M |
remoting/host/chromoting_host_unittest.cc
|
View
|
1
2
3
4
5
|
10 chunks |
+69 lines, -15 lines |
0 comments
|
Download
|
 |
M |
remoting/host/client_session.h
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/host/client_session.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/host/host_mock_objects.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/host/pam_authorization_factory_posix.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/authenticator.h
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/authenticator_test_base.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
remoting/protocol/authenticator_test_base.cc
|
View
|
1
2
3
|
2 chunks |
+27 lines, -5 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/connection_to_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/connection_to_client.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
remoting/protocol/connection_to_host.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/fake_authenticator.h
|
View
|
1
2
3
4
5
|
4 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
remoting/protocol/fake_authenticator.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+19 lines, -4 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/jingle_session.h
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/jingle_session.cc
|
View
|
1
2
3
4
|
9 chunks |
+31 lines, -9 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/jingle_session_unittest.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+72 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/me2me_host_authenticator_factory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/negotiating_authenticator_base.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/negotiating_authenticator_base.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/pairing_authenticator_base.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/pairing_authenticator_base.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/protocol_mock_objects.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/session.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/third_party_authenticator_base.h
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/third_party_authenticator_base.cc
|
View
|
1
2
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/v2_authenticator.h
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
remoting/protocol/v2_authenticator.cc
|
View
|
1
2
3
|
4 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|