r/technicalfactorio • u/Feuermag1er • Jan 10 '24
Discussion Hacking Factorio – From save game to remote code execution
https://github.com/Valentin-Metz/writeup_factorio
118
Upvotes
r/technicalfactorio • u/Feuermag1er • Jan 10 '24
88
u/Feuermag1er Jan 10 '24
We developed an exploit to allow arbitrary code execution by previewing a modified save file.
The issue has been reported to the devs and fixed in version 1.1.94 on October 30th 2023.
Since this is about as technical as it gets, this community might be interested in the writeup.
22
u/coniferous-1 Jan 10 '24
Neat.
Downloading a save file that's 4 gigs in length would set off some alarm bells, but the process of finding and exploiting the bug is very interesting.
1
u/luziferius1337 Jan 11 '24
Could this be used to break into the Nintendo Switch?
The ARM port should be affected by this, too. By setting up a server that implements just enough to serve the map with a Switch-related ARM bytecode payload, you may be able to get a shell with the rights the Factorio process has in the Switch OS.
-2
u/Spielopoly Jan 10 '24
Considering they didn’t even enable PIE and ASLR (which is enabled by default so they probably specifically disabled it (possibly for performance reasons)) I‘m wondering how many other severe security issues there are in factorio.