When a public officer by official misconduct or neglect of duty, shall forfeit his or her official bond or render his or her sureties therein liable upon such bond, any person injured by such misconduct or neglect, or who is by law entitled to the benefit of the security, may maintain an action at law thereon in his or her own name against the officer and his or her sureties to recover the amount to which he or she may by reason thereof be entitled.