Security by design

Vanillite copies Vanilla's gameplay, but never its security holes. Known ways to crash or slow down Vanilla, Spigot or Paper servers are ruled out by design. These protections are always on.

What is built

Protection What it stops
Connection limits Too many connections in total, or too many half-open logins from one IP address.
Rate limits per connection A client that floods the server with packets.
Size limits on every packet Oversized packets, and "compression bombs" (small packets that unpack into huge data).
Strict packet checks Broken numbers, invalid coordinates (such as "not a number"), packets that do not belong to the current phase, and answers to requests the server never sent (a "cookie" answer during login, configuration or play ends the connection with Vanilla's message).
Safe NBT and text decoding Deeply nested item or text data meant to crash the server. Decoding works without deep recursion, so nesting can never overflow a thread's stack.
Bounded queues A slow client making the server collect endless data for it.
Join limit per tick Join floods (setting security.max-joins-per-tick, see Performance settings).
Command limits Huge or deeply nested commands and tab-completion requests meant to stall the server (see below).
Chat limits Chat and command spam (chat-spam-threshold-seconds and command-spam-threshold-seconds in server.properties, like Vanilla), and clients that never confirm chat messages (chat.max-pending-messages).
Block and item checks Breaking blocks too fast or out of reach, placing blocks where it is not allowed, invalid or oversized item data sent by a client, and inventory and container clicks meant to duplicate or create items.
Operators and whitelist by UUID Someone taking over a name: ops.json and whitelist.json (see First start) match players by their account ID, not by name.
RCON and Query limits Guessing the RCON password and flooding: RCON and Query listen only on the same machine by default, short RCON passwords are refused, an address is blocked after too many wrong passwords, and connections and Query packets are limited (admin.*, see Configuration overview).
Signed proxy forwarding Fake identities behind a proxy: player data from the proxy only counts with a valid signature made with the shared secret. Players who skip the proxy are refused unless you allow it. The proxy's trusted link is signed with the same secret. The proxy can also use BungeeCord's older forwarding, which is not signed; it is off by default and only safe behind a firewall. The BungeeCord plugin channel of the proxy ignores messages that players send themselves.
Bedrock limits Floods from Bedrock clients: connections per IP and packets per second (bedrock.*, see Connecting).
Plugin pins Swapped plugin files: with plugins.pins, only plugin libraries with the listed hashes are loaded (see Plugins).
Safe saving Lost or corrupted world data: a full disk does not drop chunks, and a damaged file is kept as a copy before anything is saved over it (see First start).

Each known exploit has its own test, and fuzz tests throw random hostile input at the decoders (see How parity is tested).

Command limits

The limits in vanillite.toml that protect command parsing and tab completion. The defaults allow everything normal play needs.

Key Default Limits
commands.max-command-length 32767 Characters of a command.
commands.max-suggestion-input 2048 Characters of a tab-completion request (Vanilla allows 32500).
commands.max-suggestions 1000 Suggestions per answer.
commands.max-message-length 256 Characters of a message in say, msg, kick.
commands.max-nbt-depth 512 Nesting of NBT data in commands.
commands.max-nbt-path-nodes 256 Parts of an NBT path.
commands.max-selector-options 64 Options inside one @e[...] selector.
commands.max-message-selectors 16 Selectors inside one message.
commands.max-redirect-depth 64 Redirects followed while reading one command.

Gameplay tricks are different

Some "exploits" are harmless Vanilla mechanics that players use on purpose, such as TNT duplication. Those stay on by default and are switches: see Deviations from Vanilla.

Vanilla's movement checks (players moving too fast are set back) are built and also switchable there, and so is Anti-Xray against X-ray cheats.

Planned: protections for mobs and the other gameplay parts still to come arrive with those systems.

Found a security problem?

Please do not report it in a public issue, pull request or discussion. Use GitHub's private vulnerability reporting: open the Security tab of the repository and choose Report a vulnerability. Say what is affected (version, configuration, Java or Bedrock, proxy), how to reproduce it and what an attacker can do with it. Vanillite is in beta, so security fixes go into the newest release and the dev branch only. The rules are in SECURITY.md; the repository also has a contributing guide (CONTRIBUTING.md) and a code of conduct.

See also: Profiles.

Next chapter: Roadmap and status.