From 7790ebc63b891668dbce8d4fe9c62f01a1f83fea Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Fri, 10 Dec 2021 22:59:50 +0000 Subject: [PATCH] Expand log4j mitigiation to cover more cases. --- src/Protocol/Protocol_1_8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index 85765c406..a00ce20c9 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -366,7 +366,7 @@ void cProtocol_1_8_0::SendChatRaw(const AString & a_MessageRaw, eChatType a_Type ASSERT(m_State == 3); // In game mode? // Prevent chat messages that might trigger CVE-2021-44228 - if (a_MessageRaw.find("${jndi") != std::string::npos) + if (a_MessageRaw.find("${") != std::string::npos) { return; }