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
committerYehonal <yehonal.azeroth@gmail.com>2017-04-19 21:38:33 +0200
commit65aa7f45780fd2ff277256a21df4edc021ed7030 (patch)
tree20bd8561789b83e01250a7c4cf2e1f796d0e1a89 /src/authserver/Server/AuthSocket.cpp
parentffd81423f84d40c0c86856fa074a0445c76e2bf6 (diff)
Core/Auth: Per SRP6a protocol, terminate connection of A % N == 0. This resolves another authentication bypass issuev1.0.4
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;