Bugged Smart Contract FuturXE: How... CVE-2018–12025

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

Recently SECBIT team found a serious bug about the if condition in a deployed ERC20 smart contract called FuturXE (FXE) and here is the bugged part: ``` //Function for transer the coin from one address to another function transferFrom(address from, address to, uint value) returns (bool success) { //checking account is freeze or not if (frozenAccount[msg.sender]) return false; //checking the from should have enough coins if(balances[from] < value) return false; //checking for allowance if( allowed[from][msg.sender] >= value ) return false; //checking for overflows if(balances[to] + value < balances[to]) return false; balances[from] -= value; allowed[from][msg.sender] -= value; balances[to] += value; // Notify anyone listening that this transfer took place Transfer(from, to, value); return true; } ``` Pay attention to this line: if( allowed[from][msg.sender] >= value ) return false; It has a serious bug: the developer messed up with the boolean judgment - if the input value is...

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