Yannick Bolasie put Boro ahead in the 20th minute after capitalising on a mistake from Owls defender Julian Borner, yet the visitors drew level when Josh Windass converted a penalty before half-time.
Boro improved after the break and retook the lead when teenage striker Josh Coburn headed home his first goal for the club just eight minutes after coming off the bench.
Duncan Watmore added a third for the hosts who moved up to ninth in the Championship table with two games remaining.
Boro will now travel to Luton next weekend before a home meeting with Wycombe on the final day of the season.
The result left Wednesday’s Championship survival hopes hanging by a thread ahead of a meeting with Nottingham Forest.
Here’s how Boro fared at the Riverside.

1. Jordan Archer - 6
Had no chance with the penalty. Made a fine save to deny Adam Reach just before half time. 6 Photo: Alex Burstow

2. Grant Hall - 8
Played with a bandage around his head and was excellent at the back. Commanding in the air and swept up danger. 8 Photo: Stu Forster

3. Paddy McNair - 7
Assured on the ball and delivered some dangerous crosses into the opposition’s box. 7 Photo: Alex Pantling

4. Marc Bola - 5
Conceded the penalty and made too many loose passes from defence. 5 Photo: Alex Burstow


