VTVL contest - peritoflores's results

Building no-code token management tools to empower web3 founders and investors, starting with token vesting.

General Information

Platform: Code4rena

Start Date: 20/09/2022

Pot Size: $30,000 USDC

Total HM: 12

Participants: 198

Period: 3 days

Judge: 0xean

Total Solo HM: 2

Id: 164

League: ETH

VTVL

Findings Distribution

Researcher Performance

Rank: 145/198

Findings: 1

Award: $18.86

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/AccessProtected.sol#L39-L43

Vulnerability details

Impact

A malicious admin can remove a non-malicious one and take full control of VTVLVesting.sol

PoC

It seems that your design for multiple-admins at AccessProtected.sol is very dangerous.

Any admin can add or remove another admin and take full ownership of VTVLVesting.

This is an unnecessary risk because probably you plan to have multiple users with multiple roles.

I recommend you to redesign your privileged users limiting them to only the action the will perform.

For example a users can create/revoke Claim for example.

Then a general admin is able to add remove those less privileged users.

#0 - 0xean

2022-09-23T23:16:28Z

downgrading to QA.

#1 - 0xean

2022-09-23T23:17:45Z

admins are trusted per sponsors readme.

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