diff --git a/modules/autoop.cpp b/modules/autoop.cpp index afb11673..00343730 100644 --- a/modules/autoop.cpp +++ b/modules/autoop.cpp @@ -431,6 +431,11 @@ public: return false; } + if (sChallenge.length() != 32) { + PutModule("WARNING! [" + Nick.GetHostMask() + "] sent an invalid challenge."); + return false; + } + CString sResponse = pUser->GetUserKey() + "::" + sChallenge; PutIRC("NOTICE " + Nick.GetNick() + " :!ZNCAO RESPONSE " + sResponse.MD5()); return false;