There is a difference between the concept of a "judicial sale" and that of a "foreclosure", although they both may arise out of "foreclosure proceedings".
A "Judicial Sale" is when the property is sold at a declared price by Order of the Court, with the judge deciding which offer to accept and transfer the title of ownership to the new purchaser. Property is sold as is/where is.
A "Foreclosure" is when the mortgage lender obtains title to the property by an order of a declaration of foreclosure by the Court and by which the indebtedness is extinguished, and the mortgagor does not recover anything further from the property or from the borrower. Property is sold as is/where is. The mortgage lender generally chooses the offer to purchase price and can legally sign off on the purchase.