Mimo DeFi contest - shenwilly's results

Bridging the chasm between the DeFi world and the world of regulated financial institutions.

General Information

Platform: Code4rena

Start Date: 28/04/2022

Pot Size: $50,000 USDC

Total HM: 7

Participants: 43

Period: 5 days

Judge: gzeon

Total Solo HM: 2

Id: 115

League: ETH

Mimo DeFi

Findings Distribution

Researcher Performance

Rank: 33/43

Findings: 1

Award: $89.04

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

Awards

89.0354 USDC - $89.04

Labels

bug
disagree with severity
QA (Quality Assurance)

External Links

Lines of code

https://github.com/code-423n4/2022-04-mimo/blob/b18670f44d595483df2c0f76d1c57a7bfbfbc083/core/contracts/inception/InceptionVaultsCore.sol#L208

Vulnerability details

Impact

Mistakenly setting _vaultConfig.liquidationFee to be higher than WadRayMath.wad() will make liquidatePartial unusable, which could lead to admin losing funds due to bad debts not being able to be liquidated.

This is particularly dangerous as vaultConfig cannot be updated and the faulty setting can remain undetected until market movement causes bad debts. Malicious actors can borrow as much as possible without worrying about getting liquidated.

Require _vaultConfig.liquidationFee to be lower than WadRayMath.wad() during initialisation in the constructor.

#0 - m19

2022-05-05T08:53:15Z

Technically true, but requires passing wrong configuration to an Inception Vault, Inception Vaults can be easily recreated.

#1 - gzeoneth

2022-06-05T16:40:19Z

Treating as warden's QA report.

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