Nearly $2 million worth of ether ($ETH), which had been locked in a smart contract for nine years following the 2016 HongCoin ICO, has finally been retrieved thanks to the intervention of a security researcher known as 0xflorent. By identifying and exploiting an integer overflow vulnerability in the outdated smart contract, 0xflorent enabled access to the trapped funds, bringing long-awaited relief to former investors.
Problems and rescue in the HongCoin case
The HongCoin ICO, launched in 2016, failed to reach its fundraising target, which per the contract should have triggered an automatic $ETH refund to investors. However, a bug in the refund function kept these funds locked in the contract, leaving a total of 1,003.62 $ETH stranded for nine years and affecting 48 early investors.
As years passed, only partial refunds were possible, largely due to a counter in the contract restricting repayments to a maximum of just 3.56 $ETH per transaction. This limitation prevented access to larger amounts. 0xflorent noticed that an administrator function accessible via a multi-signature wallet lacked the security measures that had been introduced to the Solidity programming language in later years. Utilizing this oversight, and by inputting the right values, they could reset token balances to just one unit and bypass the refund check entirely.