Missing cooldown for handling client packets
Introduction
This is based on Mincraft 1.8 (decompiled with MCP) and might not be the case anymore.
The bug
There are no restrictions for how often a player can send packets. This is problematic for example for
- C0BPacketEntityAction: Player could attack multiple entities in one tick
- C07PacketPlayerDigging: Player can destroy multiple instantly breaking blocks in one tick.1
- C08PacketPlayerBlockPlacement: Player can place multiple blocks in one tick.2
1 You can destroy multiple instantly breaking blocks, but currently there is no limit which means you can destroy all blocks you could reach in one tick.
2 You can place multiple blocks briefly after each other, but currently there is no limit which mean you can place blocks at all positions you could reach in one tick.