Or Disney could buy the rights to Spider Man, that would be the next best thing.
They don't have to buy the rights back. Eventually the Spidey movies will start making less and less money and Sony willl stop making them. By just waiting it out, Marvel can get the rights back without spending a dime.
The rights already reverted for Dardevil, Blade, Hulk, and Punisher.