With the win, UCF (9-3, 7-1) clinched Conference USA's East Division title and will face Tulsa in the conference championship game next Saturday. McDuffie had scoring runs of 9, 8 and 43 yards in his final home game for Central Florida.
Bortles, who completed 17 of 23 for 225 yards, hit J.J. Worton with scoring passes of 18 and 4 yards. Lyle Dankenbring returned an interception 78 yards for a score as the Knights took advantage of numerous Blazer mistakes to jump out to a 35-10 halftime lead.
Jonathan Perry threw for 307 yards, two touchdown passes and a rushing score for UAB (3-9, 2-6).
UAB outgained UCF 322-237 in the first half, but three drives inside the Knights' 20-yard line ended with no points.