Mojira Archive
MC-100234

Server failing to read buffer of CPacketCustomPayload packet prints exception every time

The bug

The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

If the server receives a CPacketCustomPayload packet with an invalid buffer, the exception is printed to the log. Modified clients could abuse this and constantly send invalid buffers.
The server should maybe notice that a client is constantly sending invalid buffers and kick the player.

How to reproduce (modded client)

Send for example a "MC|PickItem" CPacketCustomPayload packet with an empty buffer

addToSendQueue(new CPacketCustomPayload("MC|PickItem", (new PacketBuffer(Unpooled.buffer()))));

Invalid

Marcono1234

2016-03-29, 05:35 PM

2020-02-16, 01:44 AM

2020-02-16, 01:44 AM

1

2

Confirmed

(Unassigned)

buffer, exception

Minecraft 1.9, Minecraft 1.11.2

-