text: It depends upon where you are located.\n\nIf the house is under foreclosure it is a legal proceeding and if the court has not issued an order assigning the rents to the court or to the mortgage holder then it would be payable to the landlord.\n\nI would stay in the house as long as possible without paying rent to anyone. Once you have recouped your costs from the free rent then either move or contact the mortgage company. Maybe there is an opportunity to become a homeowner.\n\nIf either side provides a court order saying they are entitle to receive the rent then advise the party that you have prepaid X$ to the owner and her Realtor. And will vacate one it is either repaid or been compensated by free rent.\n\nThe mortgage holder will like the idea of someone occupying the house until they are ready to sell it. It is free protection for their property.