Platform: Code4rena
Start Date: 22/08/2022
Pot Size: $50,000 USDC
Total HM: 4
Participants: 160
Period: 5 days
Judge: gzeon
Total Solo HM: 2
Id: 155
League: ETH
Rank: 11/160
Findings: 1
Award: $1,683.29
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: cccz
Also found by: IEatBabyCarrots, KIntern_NA, Lambda, berndartmueller, bin2chen, csanuragjain, jayphbee, zzzitron
1683.2874 USDC - $1,683.29
The delegate
function contains a statement that sets the delegatee to msg.sender if the delegatee is the zero address if(delegatee == address(0)) delegatee = msg.sender;
here yet the delegateBySig
function does not. It doesn't seem to cause any loss of funds yet but it's clearly unintentional. Interactions with other contracts may break if they are assuming delegating to the zero address is not possible
Create an EIP-712 signature and pass in address(0)
for the delegatee into function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s)
none
Above this line add require(delegatee != address(0));
#0 - eladmallel
2022-08-29T16:58:09Z