Nothing new here
I worked on mainframes in the bad old days. A programmer wrote code that if the tape reel was full, it rewound the reel and erased all the data on ot. As expected, it caused consternation and was promptly "fixed" i.e. it was bypassed. After about two months, a patched version of the software was installed. You guessed it, it re enabled the old bug. Ah, the days when you got to meet the VP of engineering from Boston, who promptly said we did it somehow.
Customer fessed up after a day, but the chewing lasted a long time.