PT-2022-28200

Published

2022-04-05

·

Updated

2022-04-05

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions PocketMine-MP (affected versions not specified)
Description The issue arises from the LoginPacket using BinaryStream->getLInt() to read JSON payload lengths. Since BinaryStream->getLInt() returns a signed integer, a malicious client can craft a packet with a large uint32 value for the payload buffer size, which is interpreted as a negative signed int32. This causes BinaryStream->get() to throw an exception, leading to a server crash in the context of PocketMine-MP.
Recommendations For PocketMine-MP, consider registering a custom LoginPacket implementation into PacketPool which overrides the vulnerable code to patch it. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Vendors
Affected products
Related identifiers
GHSA-5JFW-35XP-5M42
Found an issue in the description? Have something to add? Feel free to write us 👾