Platform: Code4rena
Start Date: 08/09/2023
Pot Size: $70,000 USDC
Total HM: 8
Participants: 84
Period: 6 days
Judge: gzeon
Total Solo HM: 2
Id: 285
League: ETH
Rank: 40/84
Findings: 1
Award: $132.86
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Kow
Also found by: 0xRobsol, 0xfuje, 0xkazim, 0xpiken, Aymen0909, T1MOH, bin2chen, codegpt, gumgumzum, josephdara, lsaudit, nmirchev8, ravikiranweb3, rvierdiiev
132.8565 USDC - $132.86
DOMAIN_SEPARATOR
is calculated with empty name_DOMAIN_SEPARATOR
is calculated in constructor, and cached until block.chainId is updated. Parameter name
is used, on the moment of deploy it is empty string. Name is supposed to be later via function file()
. It introduces inconsistency between real name and name used in domainSeparator
constructor(uint8 decimals_) { decimals = decimals_; wards[_msgSender()] = 1; emit Rely(_msgSender()); deploymentChainId = block.chainid; _DOMAIN_SEPARATOR = _calculateDomainSeparator(block.chainid); } function _calculateDomainSeparator(uint256 chainId) private view returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256(bytes(version)), chainId, address(this) ) ); }
#0 - c4-pre-sort
2023-09-17T00:56:36Z
raymondfam marked the issue as sufficient quality report
#1 - c4-judge
2023-09-26T17:53:54Z
gzeon-c4 marked the issue as grade-c
#2 - c4-judge
2023-09-26T18:02:54Z
gzeon-c4 removed the grade
#3 - c4-judge
2023-09-26T18:03:08Z
gzeon-c4 changed the severity to 2 (Med Risk)
#4 - c4-judge
2023-09-26T18:03:08Z
gzeon-c4 changed the severity to 2 (Med Risk)
#5 - c4-judge
2023-09-26T18:03:31Z
gzeon-c4 marked the issue as duplicate of #146
#6 - c4-judge
2023-09-26T18:03:37Z
gzeon-c4 marked the issue as satisfactory