summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_8.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2021-12-10 23:59:50 +0100
committerAlexander Harkness <me@bearbin.net>2021-12-11 00:00:37 +0100
commit7790ebc63b891668dbce8d4fe9c62f01a1f83fea (patch)
treeb7f02d54657381df5fa18338aee33e65bb640299 /src/Protocol/Protocol_1_8.cpp
parentMitigate against CVE-2021-44228 (diff)
downloadcuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.tar
cuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.tar.gz
cuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.tar.bz2
cuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.tar.lz
cuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.tar.xz
cuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.tar.zst
cuberite-7790ebc63b891668dbce8d4fe9c62f01a1f83fea.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_8.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}