code-423n4 / 2021-10-mochi-findings

0 stars 0 forks source link

`MochiTreasuryV0.sol` Implements `receive()` Function With No Withdraw Mechanism #162

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

leastwood

Vulnerability details

Impact

The MochiTreasuryV0.sol contract freely receives ETH from users/other contracts. In the event this does happen, ETH is permanently locked and unrecoverable by the protocol's governance framework.

Proof of Concept

https://github.com/code-423n4/2021-10-mochi/blob/main/projects/mochi-core/contracts/treasury/MochiTreasuryV0.sol

Tools Used

Manual code review Slither

Recommended Mitigation Steps

Consider enabling ETH withdraws for the governance role.

r2moon commented 2 years ago

this is correct, but i don't agree with risk level

ghoul-sol commented 2 years ago

no exploit, this is best practices