How would you go about fixing this exhaust leak near the muffler?

Welding is the best solution.

For a temporary fix, you can try using furnace cement or a high temp RTV sealant. Either way, they won't last long.