Title you receive: The tax collector deeds the property to the lienholder (usually the municipality). A municipality that holds a tax deed can sell it only by public auction or advertised sealed bid. Challenges to the collector's deed are barred 10 years after the deed is recorded. (N.H. RSA 80:76, 80:78, 80:80)
Overbid / surplus: When a municipality resells tax-deeded property, it may recover only back taxes, interest, costs and penalty. Within 60 days of the buyer's settlement it must file an interpleader. The court distributes the excess to the former owner and record interest holders. The buyer gets none of it. (N.H. RSA 80:88)
Liens that survive the sale: Mortgagees must be notified by certified mail at least 30 days before the tax deed is executed. The notice warns that the taxpayer's and each mortgagee's legal interest will be extinguished by the tax lien deed if not redeemed. The statutes I opened do not list which other liens survive. (N.H. RSA 80:77-a)
If nobody bids: NH has no county-wide tax sale. The town or city takes the lien and, after the 2-year redemption period, the title by tax collector's deed. It may sell only if voters authorize it, by auction or sealed bid with a minimum it sets, or keep the property. It has no duty to sell. The former owner may repurchase for back taxes, interest, costs and penalty. (N.H. RSA 80:80, 80:89, 80:91)