BTC
ETH
HTX
SOL
BNB
View Market
简中
繁中
English
日本語
한국어
ภาษาไทย
Tiếng Việt

Slow Mist: LDO’s token contract has potential “fake recharge” risks, and malicious attackers may try to use this feature to commit fraud.

2023-09-10 08:42
According to Odailys on-chain intelligence from the SlowMist security team, when LDOs token contract processes a transfer operation, if the transfer amount exceeds the amount actually held by the user, the operation will not trigger the rollback of the transaction. Instead, it will directly return false as the processing result. This approach is different from many common ERC20 standard token contracts. Due to the above characteristics, there is a potential risk of fake top-up. Malicious attackers may attempt to exploit this feature for fraudulent purposes. SlowMist recommends the following: 1. When processing the logic of token arrival, it not only depends on the success or failure of the transaction, but also needs to be judged based on the actual return value of the token contract. 2. Please note that there are many non-ERC20 standard token contracts on the market. Before accessing a new token, it is necessary to conduct an in-depth understanding and analysis of its contract code to ensure that the correct accounting logic is implemented. 3. It is recommended to conduct regular code audits and security checks to ensure the robustness and security of the system. Token contract implementation and behavior may vary from project to project. In order to ensure the security of funds and the accuracy of transactions, it is strongly recommended to deeply understand its contract logic and conduct sufficient testing before connecting any new token.