Skip to content

PocketMine-MP vulnerable to improperly checked dropped item count leading to server crash

High severity GitHub Reviewed Published May 30, 2023 in pmmp/PocketMine-MP • Updated Jun 6, 2023

Package

composer pocketmine/pocketmine-mp (Composer)

Affected versions

< 4.18.1

Patched versions

4.18.1

Description

Impact

In 4.18.0, the network handling of inventories was completely revamped. Due to this, a bug was introduced which allowed players to request that the server drop more of an item than they had available in their hotbar.

This did not lead to any duplication issues, but instead led to a server crash, and is believed to have been exploited in the wild.

Patches

This was fixed in 58974765a68f63a9968a7ff3a06f584ff2ee08d2, which was released in 4.18.1.

Workarounds

Handle InventoryTransactionPacket in DataPacketReceiveEvent, and verify that the item count dropped isn't more than the available item count. However, it's complicated to do this, so it's not recommended.

References

@dktapps dktapps published to pmmp/PocketMine-MP May 30, 2023
Published to the GitHub Advisory Database Jun 6, 2023
Reviewed Jun 6, 2023
Last updated Jun 6, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-h87r-f4vc-mchv

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.