Unless Congress closes a gaping hole in the law against war profiteering, companies ripping off taxpayers in the Iraq and Afghanistan wars may never be fully prosecuted. This is because the latest conflicts are not declared wars.

The anti-fraud law dating to World War II allows prosecution of contractors up to three years after a war ends. But this statute of limitations was omitted from the resolutions authorizing military force in Iraq and Afghanistan, which carried no formal war declaration.

Investigators say that current war fraud runs into untold billions, including faulty ammunition and vehicles and not-so-bullet-proof vests. Investigative officials and the inspector general for Iraq reconstruction have testified that they’re hampered by the ongoing conflicts and need more time to catch contract thieves after they end.

The solution is a bipartisan bill clarifying that “war” absolutely includes Congressional authorizations of military force. The repair also wisely allows prosecution for five years after a war. The Senate Judiciary Committee just approved this crucial measure and the rest of Congress should quickly enact it. Or else the loophole will continue to invite war contracting as “a free-for-all with no criminal accountability,” in the words of Senator Charles Grassley, the bill’s Republican sponsor.