Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade pocketmine/pocketmine-mp to version 5.39.2 or higher.
pocketmine/pocketmine-mp is a highly customisable, open source server software for Minecraft: Bedrock Edition written in PHP
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the ModalFormResponsePacket handling process. An attacker can exhaust server memory and CPU resources by sending a massive JSON payload in the formData field, causing the server to freeze or become unresponsive. This is only exploitable if the attacker has an active session and is spawned in the game world.
This vulnerability can be mitigated by using a plugin to check the maximum size of the formData field and ensure the form ID is not repeated via DataPacketReceiveEvent. However, a complete workaround requires reflection to access the Player->forms property, which is not available via the public API prior to version 5.39.2.