If the cracks are annular (circles around the pylons - the aluminum part that comes out of the hull), that's a dead giveaway that the pylon has come loose in the hull.
It's repairable, but it's a lot of work. Depending on the age of the boat, it might be better to pass on buying it.
Cosmetic cracks in the gel coat are no big deal.