Mojira Archive
MC-100235

Client sending invalid button id for CPacketEnchantItem packet causes server side exception

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.

When the client sends an invalid button id in a CPacketEnchantItem packet the server prints an ArrayIndexOutOfBoundsException. This could be abused by constantly sending invalid packets and crashing the server.

How to reproduce (modded client)

Have for example the method net.minecraft.client.multiplayer.PlayerControllerMP.sendEnchantPacket(int, int) always send CPacketEnchantItem packets with -10 as button id

Invalid

Marcono1234

2016-03-29, 05:47 PM

2022-01-02, 09:38 PM

2020-02-16, 01:41 AM

1

2

Confirmed

(Unassigned)

button, enchant, packet

Minecraft 1.9, Minecraft 1.11.2

-