LSD Network - Stakehouse contest - Udsen's results

A permissionless 3 pool liquid staking solution for Ethereum.

General Information

Platform: Code4rena

Start Date: 11/11/2022

Pot Size: $90,500 USDC

Total HM: 52

Participants: 92

Period: 7 days

Judge: LSDan

Total Solo HM: 20

Id: 182

League: ETH

Stakehouse Protocol

Findings Distribution

Researcher Performance

Rank: 81/92

Findings: 1

Award: $52.03

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

1. Target address is not checked for address(0). if address(0) is passed as the target the call function will return true. But the transaction will fail.

Should check for the non-zero target address. require(target != address(0), "Zero address");

https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/smart-wallet/OwnableSmartWallet.sol#L78

2. revert error message is given as ZeroAddress(). But it is checking for _recipient == address(this).

It is advisable to create a new error message for this condition as ThisAddress() in SyndicateErrors.sol and import it into Syndicate.sol.

There are 2 instances of this issue:

https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/syndicate/Syndicate.sol#643 https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/syndicate/Syndicate.sol#296

#0 - c4-judge

2022-12-02T19:52:50Z

dmvt marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter