The hero of the game was Marin Šipić, who scored the winning goal in the final second.
Filip Glavaš led the Croatian side with six goals, while Šipić and Zvonimir Srna each contributed five. Hungary's standout player was Zoran Ilić, who netted eight goals.
Croatia will face the winner of the France vs. Egypt match in the semi-final in Zagreb on Thursday.