NSA Knew of Flaw that Led to Cyber Attack Three Years in Advance