Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

bikini/minecraft2shell

Security & Privacy

A Windows PoC that turns a crafted Minecraft resource pack into native code execution via TrueType hinting.

150
0
Python
new today

What it is

This repository is a build-specific, reproducible proof of concept for native code execution in the Mojang-signed Minecraft Java 26.3 Windows client. A server delivers one resource pack containing crafted TrueType fonts; ordinary actionbar text triggers glyph hinting, and the font bytecode manipulates FreeType's interpreter state to pivot to a ROP chain that launches calc.exe.

The README is mainly a technical writeup: it traces the composite-glyph SHZ out-of-bounds write, the IDEF-based recovery program, the stack pivot using the TrueType VM stack, and the runtime address derivation from FreeType RVAs. It targets a specific bundled FreeType 2.14.3 x64 build and is not presented as portable to other Minecraft or FreeType versions.

Quick start

On Windows x64 with 64-bit Python 3, run python poc.py from the release directory according to the README. The script prepares official Minecraft 26.3 dependencies, starts a local server and the signed client, serves the included resource pack, waits for it to load, then sends a fixed sequence of F and A actionbar text to all 144 font faces. A successful run prints CALCULATOR_PROCESS and POC_SUCCESS, writes results under runs/, and leaves Calculator open while the client exits.

The local server is configured as trusted in servers.dat for promptless pack loading. Against an untrusted server, the normal resource-pack acceptance prompt still appears and must be accepted manually. The pack is advertised through standard server.properties fields (resource-pack, resource-pack-sha1, resource-pack-id, require-resource-pack), and the sender uses RCON only to issue the actionbar commands.

Constraints

  • Platform: Windows x64 and 64-bit Python 3 only.
  • Target build: the exploit depends on FreeType 2.14.3 x64 as bundled in Minecraft Java 26.3; gadget and IAT RVAs are tied to that binary. Context offsets and gadget addresses are not claimed to work on other builds.
  • Allocator dependence: the heap adjacency needed by the SHZ sweep is probabilistic, so the pack includes 144 font faces sent in fixed order to increase the chance that at least one layout works.
  • Pack consent: the PoC does not bypass the resource-pack acceptance prompt on an untrusted server.
  • License: none declared.

HotRepo's take

The repo entered HotRepo's new-project list on 2026-11-22, gaining 110 stars in a roughly seven-hour window with no forks. That is a single snapshot, so it supports only the fact of a fast initial burst, not a trend. For a security audience, the useful part is the unusually detailed writeup: it names the affected FreeType code paths, explains the same-glyph recovery transition, and states the build-specific limits rather than claiming general exploitability. The included generator script and 144-face pack make the chain concrete, but reproducibility still depends on the tested client and FreeType builds.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. eness/php2shell-CVE-2026-109618-CVE-2026-109619-PoCA weaponized PoC for pre-auth PHP core RCE bugs, aimed at defenders verifying exposure and patch urgency.Shell983
  2. sfewer-r7/CVE-2026-123007Python PoC scripts that trigger and exploit an integer underflow in NGINX HTTP/2 to demonstrate unauthenticated RCE.Python272