Any person who corruptly practices, or attempts to practice, any fraud against the state in the proof, statement, establishment, or allowance of any claim or cause of action or any part thereof, in the matter out of which the same arose, shall ipso facto forfeit the same to the state; and it shall be the duty of the court in such case to find specifically that fraud was practiced, or attempted to be practiced, and to render judgment of forfeiture, and that the claimant be forever barred from prosecuting the same against the state, and for costs.