loophole

A flaw in the law, which allows one to circumvent the law's intention without actually breaking that law.