Boro have been drawn at home against either Peterborough United or Bradford City in the Emirates FA Cup Third Round.
The League One duo played out a 2-2 draw at the weekend, with the winner of a replay scheduled for Tuesday December 11 now set to travel to the Riverside in the New Year.
Boro have been drawn against Posh once in the competition's history, a victory of the Teessiders after a replay way back on 1975.
The most recent of Boro's three Emirates FA Cup meetings with Bradford came in 2001, when Hamilton Ricard's goal was the difference at Valley Parade.
Third round ties are scheduled to take place over the weekend of Saturday January 5 2019.