code-423n4 / 2022-11-stakehouse-findings

1 stars 1 forks source link

Upgraded Q -> M from #400 [1670235895275] #448

Closed c4-judge closed 1 year ago

c4-judge commented 1 year ago

Judge has assessed an item in Issue #400 as M risk. The relevant finding follows:

L01 - EOA restriction of wallet representative can be bypassed https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/LiquidStakingManager.sol#L435

A node operator can call registerBLSPublicKeys() to register a node runner to LSD and create a new smart wallet. The protocol only allows EOAs to be registered as _eoaRepresentative.

The issue is that this can be easily circumvented. As detailed in the isContract() definition by OpenZeppelin:

The operator can then redeploy the same contract to the same address using a CREATE2 call in their factory.

Impact Low

c4-judge commented 1 year ago

dmvt marked the issue as duplicate of #187

c4-judge commented 1 year ago

dmvt marked the issue as satisfactory

C4-Staff commented 1 year ago

JeeberC4 marked the issue as duplicate of #93