Whoever funded and arranged for the song to be made owns the master, but not the publishing. The lack of a contract affects both parties' ownership claims, especially if the artist is considered an adult. If there is insufficient evidence of who made certain arrangements, the master is split 50/50.
If you're an artist working with an individual who is paying for your studio time without a contract, ask for one!