Barnet turned on the style in the second half to crush York 4-2 in the Vanarama National League.
The home side actually started the better, going ahead through Dipo Akinyemi’s seventh-minute lobbed opener.
But Barnet hit back, Idris Kanu having a goal ruled out for offside before Harry Pritchard equalised from the edge of the box (12).
Kanu gave the visitors the lead from close range (64) and the result was secured three minutes later when Reece Hall-Johnson headed in at the back post.
Zak Brunt nodded in a fourth with eight minutes to go as Barnet rubbed salt into the wound, before Akinyemi’s last-minute consolation.