Bytecode Breakdown: Unraveling Factorio's Lua Security Flaws
Factorio's Lua interpreter accepted precompiled bytecode from custom maps, and its hand-written bytecode verifier had an off-by-one in the jump opcode that let an attacker jump outside the code block. A malicious server could therefore run crafted bytecode on connecting clients and, by abusing unchecked type handling in the FORLOOP opcode, leak memory addresses and build fake objects towards arbitrary code execution.
Factorio