Dream Minecraft Manhunt (with optional Discord music integration)

Potential security issue

ThrowerWay opened this issue ยท 0 comments

commented

Checking event.getView().getTitle() to see whether your custom inventory is being used is unsafe, as renaming a chest in an anvil allows users to set their own inventory titles. The correct way to check if your custom inventory is involved with an event is by using custom holders, see here: https://docs.papermc.io/paper/dev/custom-inventory-holder

if (event.getView().getTitle().equals(TargetSelectInventory.INVENTORY_NAME)) {