summaryrefslogtreecommitdiff
path: root/src/authserver/Server/AuthSocket.cpp
diff options
context:
space:
mode:
authorstarrheld <kevin@starrheld.co.uk>2017-03-19 19:18:43 +0100
committerHeartWell <heartwell@list.ru>2017-03-19 21:18:43 +0300
commita67ceca682a813303de21d8f5a362134004315b6 (patch)
tree2dbcd7ee6f610752cb99a1d2f0247eed0f574de7 /src/authserver/Server/AuthSocket.cpp
parent6908181569160f2b44b324a1515d1f936f1af8ae (diff)
Core/Auth: Per SRP6a protocol, terminate connection of A % N == 0. This resolves another authentication bypass issue
Diffstat (limited to 'src/authserver/Server/AuthSocket.cpp')
-rw-r--r--src/authserver/Server/AuthSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authserver/Server/AuthSocket.cpp b/src/authserver/Server/AuthSocket.cpp
index b9e935a6d0..b9671c0d12 100644
--- a/src/authserver/Server/AuthSocket.cpp
+++ b/src/authserver/Server/AuthSocket.cpp
@@ -557,7 +557,7 @@ bool AuthSocket::_HandleLogonProof()
A.SetBinary(lp.A, 32);
// SRP safeguard: abort if A == 0
- if (A.isZero())
+ if ((A % N).isZero())
{
socket().shutdown();
return true;