One of the flaws detected could have allowed a hacker to take control of a key Government digital service