2-9-505. Bonds of receivers, assignees -- payable to state. All bonds or undertakings given by trustees, receivers, assignees, or officers of a court in an action or proceeding for the faithful discharge of their duties, where it is not otherwise provided, must be in the name of and payable to the state and, upon the order of the court where such action or proceeding is pending, may be prosecuted for the benefit of any and all interested therein.