Nocom – 2b2t Minecraft server exploit using Monte-Carlo localization
The PaperMC server software for Minecraft replies to a block-break packet even when the target chunk is loaded by any player, not just the sender, revealing whether a chunk is loaded at any distance. Attackers used this to track players and locate bases remotely.
github.com
Published on github.com
History
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the PaperMC patch that fixes block-break desync replies to the player if the chunk is loaded by any player, instead of only if it is loaded by the requesting player.
Impact
Attackers could remotely determine loaded chunks and block types at any distance, enabling them to track players and locate bases, though rate limits introduced later reduced the effectiveness.
What the attacker needed
Minecraft client capable of sending custom packets; Server running vulnerable PaperMC version; Account on the server
The fix
The issue was fixed by PaperMC on 2021-07-15, likely by restricting the reply to only when the chunk is loaded by the requesting player.
How it was found
- Send a block-break packet for a coordinate far away.
- If the server replies with the block type, the chunk is loaded; if not, it is unloaded.
- Use a spiral scan to check chunks at increasing distances.
- Track players by following their loaded chunks with a particle filter.
- Download bases by checking blocks and comparing to vanilla terrain.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
In Minecraft, when you try to break a block, the server checks if the block is within reach and, if not, sends the correct block back to your game to fix any mismatch. This feature was meant to only work for blocks near you, but due to a coding mistake, it works for any block anywhere on the map as long as that area is currently loaded by some player. By sending many such checks, attackers could detect where players are and what blocks are present, even millions of blocks away.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.