[TAS] Super Mario World "Arbitrary Code Execution" in 02:25.19 by Masterjun
Why Hacker News recommends it
Cited as the classic example of arbitrary code execution inside a game, with later runs injecting Pong, Snake and Flappy Bird.
What it is
A tool-assisted speedrun of Super Mario World that achieves arbitrary code execution through frame-precise controller inputs, finishing in 2:25. It was also performed live on real hardware at AGDQ 2014.
Recommended by 0 HN commenters across 0 different months, 2015 to 2021.
What Hacker News said
Cites Scuds · 2015-04 · on “Pokemon Yellow Total Control Hack”
Similar deal with super mario world, using programmed controllers to poke arbitrary code into memory and execute it. [this video]
Cites Buge · 2016-05 · on “Flappy Bird Clone Code Injected into Super Mario World for SNES by Hand”
He's pointing out that although this type of thing has already been done before by automated inputs (such as this video [this video] ), this is the first time a human has done it.
Cites 7373737373 · 2017-07 · on “Block-breaking game in vim 8.0”
One of the most brilliant applications of this concept is the Pokémon Yellow Total Control Hack: [LINK] Similarly, arbitrary code execution in Super Mario World: [this video] It's like transforming a chess game into Mikado just by playing it.
Cites crankylinuxuser · 2018-02 · on “Apple's Failure to Check Kill Syscall Privilege “Not a Security Issue””
[this video] Video is about exploiting Super Mario world, on SNES. The result is that the exploiter then proceeds to make 2 new games inside SMW: Pong and Snake. Those games don't exist inside SMW. They were uploaded using controller inputs. All it takes is 1 hack.
Cites politician · 2019-04 · on “Indie Game Removed from Switch After Dev Reveals It Has a Hidden Code Editor”
That's wild because Super Mario Bros contains a built-in code editor (via arbitrary code execution easter eggs), and Nintendo is OK with that. [this video]
Cites duskwuff · 2021-03 · on “FizzBuzz Mario World: Learning Assembly Language and Having Some Fun”
Somewhat disappointed. I was expecting them to use the well-known arbitrary code execution exploit in this game to load their own implementation of FizzBuzz, cf. [this video] The method used by Masterjun3 is TAS-only (it involves executing the contents of the controller registers as code, which requires frame-precise inputs), but there are some other methods which are more viable for a real-time attack.