There are auditors who are supposed to scrutinise this stuff. Audit trails with counter party ledgers, receipts, reconciliation with bank statements can easily bring out any such fraud.
To claim the miscarriage of justice happened due to “bugs” is wrong. It’s due to bad auditors. I think this is poor journalism.