In case any mortgagor, redemptioner, or judgment debtor objects to the payment of any insurance premium, taxes, or prior liens on account of the incorrectness or invalidity thereof, that person may file with the sheriff an indemnity bond, in an amount and with sureties to be approved by the judge of the district court, and thereupon the sheriff shall permit redemption to be made without the payment of such insurance premiums, taxes, or prior liens so excepted to, and the purchaser may determine the correctness or validity thereof and may collect the same by an action directly upon such bond, which action must be brought within one year next following such redemption.
N.D.C.C. § 28-24-08