A suit may be brought by any taxpayer, in the name and for the benefit of the municipality, against any person to recover any money or property belonging to the municipality, or for any money which may have been paid, expended, or released without authority of law. But such a taxpayer shall file a bond for all costs, and shall be liable for all costs in case the municipality is defeated in the suit, and judgment shall be rendered accordingly.
65 ILCS 5/1-5-1