> Covering up data breaches should be straight-up illegal, as in prison time.
Is it also illegal to cause a breach? Do you understand the backwards motivations you are giving people?
He can disclose the breach, cause himself (or his co-workers) to risk prison, and cost his company $$$$, which is likely to get people fired.
Or,
Cover the whole thing up (i.e. quietly fix the bug), and no one will ever know.
And if they do find out, he can say "I didn't know anything about a breach, I proactively fixed a bug, I didn't realize someone had taken advantage of the bug" - i.e. he's safe either way.