Technically the landlord should have told you before you signed the lease for the unit you have that it was likely that the property would be foreclosed upon. However, under 2010 federal law, even if the rental is foreclosed upon, the new owner is required to let you remain in the unit for the duration of your lease so long as you are not in breach of contract.If you are on a month-to-month lease the new owner per a foreclosure is required to give you at least 90 days written notice to vacate. I suggest that you may want to consult further with a landlord tenant attorney about your matter.