Erling Braut Haaland scored an extra-time winner as Borussia Dortmund edged past second-tier Paderborn in the third round of the German Cup.
Goals from Emre Can and England winger Jadon Sancho saw the hosts take charge.
But goals from Julian Justvan and a Prince Osei Owusu penalty - which came deep in stoppage time after a VAR review - levelled the tie.
However, 20-year-old Haaland then settled the contest after another VAR review.
The Norwegian has now scored 22 goals in 21 games for Dortmund this term, although he thought that he had sealed their victory much earlier.
But in a remarkable turn of events his goal in the fifth minute of added time was chalked off after a VAR review for an earlier foul in the Dortmund area, which then led to Paderborn's penalty.
The result means that Dortmund have won their last 26 cup matches against opposition from below the Bundesliga.
Elsewhere, fourth division side Rot-Weiss Essen joined Dortmund in the quarterfinals after pulling off a stunning comeback in extra-time to beat Bayer Leverkusen 2-1.
After being held for 90 minutes, Bundesliga side Leverkusen pulled ahead just before half-time in the extra period through Leon Bailey, but Oguzhan Kefkir equalised early in the second half.
Simon Engelmann snatched an unlikely winner in the 117th minute for Essen, who knocked out second division Fortuna Dusseldorf in the last round and last lifted the Cup back in 1953.
They have not been in the Bundesliga since being relegated in 1977.
Leverkusen, who fell to a third consecutive defeat in all competitions, are fifth in the German top flight.
Second division side Holstein Kiel followed up their penalty shootout win over holders Bayern Munich in the last round by beating Darmstadt 7-6 on penalties after a 1-1 draw.
Werder Bremen also made it into the last eight, beating Greuther Furth 2-0 at home.