Source-checkedAdmin & protection

BookExploitFix

by minoneer · for Minecraft

Fixes an exploit allowing hack clients to create books with JSON commands

13KDownloads
2 yr agoLast updated
Spigot · PaperLoaders
1.20.6Latest game version

About BookExploitFix

From SpigotMC

Fixes an exploit allowing hack clients to create books with JSON commands

Improve the security of your Minecraft server by filtering illegal content from player created books. Books can contain content which executes arbitrary commands, opens links or files on the players computer without any previous indication or warning. Hackers often use these books to trick server staff or other players into giving them access they are not supposed to have.

Originally, this plugin was developed to patch an issue with hack clients on 1.8 servers, where even in survival mode players were able to create books with JSON content. This has been fixed for survival in 1.8.3 but persists for creative mode to this day.

How does it work?
Since version 1.8, book pages are stored as JSON strings, which allow to encode actions when the text is clicked. This includes opening URLs, executing commands, etc. Hackers exploit this by encoding commands like /op and then try to get someone with the appropriate permissions to click the page. In less drastic cases, they can use it to get unsuspecting players to transfer money, give build permissions, etc.

What does the plugin do?
This plugin counters these attempts by filtering the book pages when a player creates or reads a book, removing the potentially harmful actions while preserving the actual text.

Check out my other plugins: https://www.spigotmc.org/resources/authors/minoneer.4653/

Plugin Description

Command:

/filter - Actively applies the filter on the book in your hand, useful for testing purposes.
aliases: /bookfilter | /filterbook
permission: bookfilter.filter

Requirements:

CraftBukkit or Spigot version 1.13 or newer
Java 11 or newer
Optional: to filter new books created in creative mode, ProtocolLib is required

Configuration:

The plugin allows you to configure which type of content you wish to filter, as well as the player actions on which books are checked. It also supports customization and deactivation of player messages.
Please check the default config for reference: https://github.com/minoneer/BookExploitFix/blob/master/src/main/resources/config.yml


I recommend to "Watch This Resource" as I will push critical fixes as fast as I can. Any feedback and suggestions for improvement are very welcome!

History
Spigot has fixed the exploit for survival mode in this commit which means in Spigot version 1.8.3 and later. In creative mode, inventories are handled differently and is therefore still affected.

Disclaimer: I have tested this plugin in test and live environments. However, plugins can always contain bugs and unintended behavior. If you use this plugin, you do so on your own risk. I cannot be held responsible for any consequences from using this plugin. If you encounter any bugs, please report them so they can be fixed.

Highlights

From source data

Game versions

Supports 9 Minecraft versions, the newest being 1.20.6.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

BookExploitFix on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.4, released 2024-05-12

Game versions by loader

LoaderGame versionsNewest
Paper1.13 to 1.20.6 (9 versions)1.20.6
Spigot1.13 to 1.20.6 (9 versions)1.20.6

From 10 recorded builds of BookExploitFix.

Recent builds

BuildReleasedGame versionsLoaders
1.42024-05-121.13 to 1.20.6 (9 versions)Spigot, Paper
1.32022-09-13n/aSpigot, Paper
1.22021-06-25n/aSpigot, Paper
1.12021-01-12n/aSpigot, Paper
1.02020-12-29n/aSpigot, Paper
1.02019-12-11n/aSpigot, Paper

Run BookExploitFix on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists BookExploitFix as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.20.6 and 8 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-02Open ↗
  • ✓Authorminoneer, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

BookExploitFix, answered

Generated from the mod’s own source data.

Do my players need to install BookExploitFix?

SpigotMC lists BookExploitFix as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. BookExploitFix is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run BookExploitFix on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add BookExploitFix in one click.