Boot Finance contest - fr0zn's results

Custom DEX AMM for Defi Projects

General Information

Platform: Code4rena

Start Date: 04/11/2021

Pot Size: $50,000 USDC

Total HM: 20

Participants: 28

Period: 7 days

Judge: 0xean

Total Solo HM: 11

Id: 51

League: ETH

Boot Finance

Findings Distribution

Researcher Performance

Rank: 11/28

Findings: 3

Award: $925.81

🌟 Selected for report: 4

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: gpersoon

Also found by: elprofesor, fr0zn, pauliax

Labels

bug
duplicate
3 (High Risk)
resolved
sponsor confirmed

Awards

529.9131 USDC - $529.91

External Links

Handle

fr0zn

Vulnerability details

Vulnerability Details

On the AirdropDistribution.sol, inside the validate function (line 506) , the validated[msg.sender] is not checked and the validation for an already airdropped user is done using the airdrop[msg.sender].amount value. Provide a detailed description of this particular bug/vulnerability.

Impact

From a theoretical perspective, with infinite time, the airdrop[msg.sender].amount could be zero, leading to any user to call validate and reclaim the airdrop again. Although this is highly unlikely, the impact of this could lead to any user to double claim and spend their tokens.

Tools Used

Manual code review

It is recommended to check for validated[msg.sender] == 1 instead of airdrop[msg.sender].amount == 0 on line 506.

#0 - CloudEllie

2022-01-04T17:05:56Z

Just noting here that #129 is currently open, so I'm assuming the sponsor intends for it to be selected as the primary issue (for inclusion in the report), unless the judge indicates otherwise.

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