RadBuilder / EmojiChat

A simple, configurable, opensource plugin that adds emojis to your chat!
https://emojichat.radbuilder.net/
MIT License
43 stars 31 forks source link

Potential security issue #36

Open ghost opened 8 months ago

ghost commented 8 months ago

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

https://github.com/RadBuilder/EmojiChat/blob/c1791262e4c01f4cb68e9377329535d4952a2370/plugin/src/main/java/io/github/radbuilder/emojichat/EmojiChatListener.java#L159