From bbbaf62a76b1ce90bd58353e9d9dc83354a2f72b Mon Sep 17 00:00:00 2001 From: Fyre <58180427+i-am-fyre@users.noreply.github.com> Date: Wed, 25 Nov 2026 19:36:55 -0500 Subject: [PATCH] SOAP: log username instead of password on failed login When a SOAP client sent a valid account name with a wrong password, SoapThread logged soap->passwd in the "invalid password for account" message. This wrote the attempted plaintext password to the server log. Log soap->userid instead, which is what the message meant to print. Co-Authored-By: Claude Opus 5.5 --- src/mangosd/SOAP/SoapThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mangosd/SOAP/SoapThread.cpp b/src/mangosd/SOAP/SoapThread.cpp index 662343be1..068bb1d41 100644 --- a/src/mangosd/SOAP/SoapThread.cpp +++ b/src/mangosd/SOAP/SoapThread.cpp @@ -116,7 +116,7 @@ int ns1__executeCommand(soap* soap, char* command, char** result) if (!sAccountMgr.CheckPassword(accountId, soap->passwd)) { - sLog.outString("SoapThread: Client sent an invalid password for account %s", soap->passwd); + sLog.outString("SoapThread: Client sent an invalid password for account %s", soap->userid); return 401; }