Mitigate against CVE-2021-44228
This commit is contained in:
parent
3ff57559e3
commit
0f8a8de77c
@ -365,6 +365,12 @@ 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)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Send the json string to the client:
|
||||
cPacketizer Pkt(*this, pktChatRaw);
|
||||
Pkt.WriteString(a_MessageRaw);
|
||||
|
Loading…
Reference in New Issue
Block a user