Platform: Code4rena
Start Date: 04/01/2023
Pot Size: $60,500 USDC
Total HM: 15
Participants: 105
Period: 5 days
Judge: gzeon
Total Solo HM: 1
Id: 200
League: ETH
Rank: 78/105
Findings: 1
Award: $36.50
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xSmartContract
Also found by: 0x1f8b, 0xAgro, 0xdeadbeef0x, 0xhacksmithh, 2997ms, Atarpara, Bnke0x0, Diana, HE1M, IllIllI, Josiah, Kalzak, Lirios, MalfurionWhitehat, MyFDsYours, Raiders, RaymondFam, Rolezn, SaharDevep, Sathish9098, Udsen, Viktor_Cortess, adriro, ast3ros, betweenETHlines, btk, chaduke, chrisdior4, cryptostellar5, csanuragjain, giovannidisiena, gz627, hl_, horsefacts, joestakey, juancito, ladboy233, lukris02, nadin, oyc_109, pauliax, peanuts, prady, sorrynotsorry, zaskoh
36.5015 USDC - $36.50
ReentrancyGuardUpgradeable
is not initialized by calling __ReentrancyGuard_init
or __ReentrancyGuard_init_unchained
:contract SmartAccount is ... ReentrancyGuardUpgradeable
function setOwner(address _newOwner) external mixedAuth
block.chainid
:function getChainId() public view returns (uint256) { uint256 id; // solhint-disable-next-line no-inline-assembly assembly { id := chainid() } return id; }
<=
:require(stake < type(uint112).max, "stake overflow");
info.deposit = uint112(info.deposit - withdrawAmount);
function isContract(address account) internal view returns (bool) { uint256 csize; // solhint-disable-next-line no-inline-assembly assembly { csize := extcodesize(account) } return csize != 0; }
deployWallet
similarly like deployCounterFactualWallet
should emit SmartAccountCreated
event.
getModulesPaginated
does not return the correct next
, this function was copied from Gnosis Safe and is fixed in the upcoming release:
https://github.com/safe-global/safe-contracts/issues/461
Gnosis Safe is not entirely EIP-1271 compliant and are planning to refactor EIP-1271 support: "EIP-1271 in the form added is not supported anymore, therefore the logic for it should be removed" See: https://github.com/safe-global/safe-contracts/issues/391 and https://forum.gnosis-safe.io/t/safe-contract-v2/87
#0 - c4-judge
2023-01-22T15:53:23Z
gzeon-c4 marked the issue as grade-b
#1 - c4-sponsor
2023-02-09T11:17:18Z
livingrockrises marked the issue as sponsor confirmed