Looks like the middle section, Part No 11 in the drawing, needs replacing as well?
You're right. I should have inspected this more closely before. I have now ordered a new mid section. This will be here Monday or Tuesday and we will re-visit this job!
You would have had to get those nuts glowing to get the bolts out.
You could cut the old nuts off with a grinder, most of that mess from the back box flange will fall off, then clean the flange up with a cup brush or something. It all depends what the flange cleans up like - it looks a bit crusty, but you never know... If it's okay, use a couple of new nuts and you should be away.
If you replace the middle pipe, you might have a similar problem at the cat end. The constant heating-cooling makes the bolts soft and snappy, you can't usually undo them without some heat... or cut them off.