Rear brake help

Changed my front and rear pads and my fronts work great now but my tears have no pressure.

I checked to make sure the Pistons came back out and they did, bled them and had no air in the lines, no visible leaks.

I’m guessing it needs a new master cylinder for the rears but figured I’d get some insight before I bought one

Thanks