Attackers can steal all of Ether in... CVE-2018–10944

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### Abstract I found a vulnerability of a smart contract for ROC (aka Rasputin Online Coin), an Ethereum ERC20 token (CVE-2018–10944)[1]. The request_dividend() function has a critical bug similar to Reentrancy attack. Attackers can call the function in multiple times to steal Ether constantly until all of the contract’s Ether is drained. ### Details ![](https://images.seebug.org/1531107154121-w331s) Figure 1. Source code of the request_dividend() function Figure 1 shows the source code of the request_dividend() function [2]. First, this function computes holder_token_balance and holder_profit using balances of token_holder which is an argument of the function. Then, it sends Ether to token_holder as much as holder_profit. However, the balance of token_holder is not decreased after or before the transmission. It means that we can send the same amount of Ether to token_holder again and again until all of the contract’s Ether is drained. Moreover, request_dividend() function is...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息