A software bug that deposits fake balances into cryptocurrency exchange wallets has been detected in 7,772 ERC-20 tokens worth over $1 billion.