Summary
If a client sends a BookEditPacket with InventorySlot greater than 35, the server will crash due to an unhandled exception thrown by BaseInventory->getItem()
.
Details
Crashes at
|
$oldBook = $this->player->getInventory()->getItem($packet->inventorySlot); |
PoC
Using Gophertunnel, use serverConn.WritePacket(&packet.BookEdit{InventorySlot: 36})
Impact
Server crash, all servers
Patched versions
This issue was fixed by 47f0119, and the fix was released in 5.11.2.
Summary
If a client sends a BookEditPacket with InventorySlot greater than 35, the server will crash due to an unhandled exception thrown by
BaseInventory->getItem()
.Details
Crashes at
PocketMine-MP/src/network/mcpe/handler/InGamePacketHandler.php
Line 873 in b744e09
PoC
Using Gophertunnel, use
serverConn.WritePacket(&packet.BookEdit{InventorySlot: 36})
Impact
Server crash, all servers
Patched versions
This issue was fixed by 47f0119, and the fix was released in 5.11.2.