Mojira Archive
MC-133137

NettyCompressionDecoder - Hard Coded Limit

The reason this bug is private is this bug can be a serious issue to players on any server allowing Written Books and Shulker Boxes and is more of an exploit.

The recent addition of skulker boxes has allowed players to increase their inventory size to that which allows the hard coded NettyCompressionDecoder Limit to be reached using Written Minecraft Books. More specifically the limit that is given in this clip of the code.

 

 

if (i > 2097152)

{ throw new DecoderException("Badly compressed packet - size of " + i + " is larger than protocol maximum of " + 2097152); }

 

This can be a serious issue if players give another player enough skulkers filled with books to kick them from a server resulting in a soft core "Ban" as they will not be able to log back in without modifying the game or contacting an admin to delete their player information. A special note is the use of Unicode characters can greatly increase the size of a book and also increase the size of the packet.

 

 

 

 

Awaiting Response

James

2018-07-10, 07:47 AM

2019-12-03, 11:26 PM

2019-12-03, 11:26 PM

0

1

Plausible

(Unassigned)

Minecraft 1.12.2, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w30b

-