Trader Joe contest - 0x1f8b's results

One-stop-shop decentralized trading on Avalanche.

General Information

Platform: Code4rena

Start Date: 25/01/2022

Pot Size: $50,000 USDT

Total HM: 17

Participants: 39

Period: 3 days

Judge: LSDan

Total Solo HM: 9

Id: 79

League: ETH

Trader Joe

Findings Distribution

Researcher Performance

Rank: 14/39

Findings: 3

Award: $1,220.07

🌟 Selected for report: 2

πŸš€ Solo Findings: 0

Findings Information

Labels

bug
duplicate
2 (Med Risk)

Awards

60.3184 USDT - $60.32

External Links

Handle

0x1f8b

Vulnerability details

Impact

Unsafe transfers.

Proof of Concept

In LaunchEvent there are multiple transfers without checking the boolean result, ERC20 standard specify that the token can return false if the transfer was not made, so it's mandatory to check the result of transfer methods.

Affected lines:

  • LaunchEvent.withdrawLiquidity: 457, 463
  • LaunchEvent.withdrawIncentives: 489
  • LaunchEvent.emergencyWithdraw: 513
  • LaunchEvent.skim: 537, 542

Tools Used

Manual review

Check the boolean result.

#0 - cryptofish7

2022-02-11T00:20:01Z

Duplicate of #12

#1 - dmvt

2022-02-22T10:49:41Z

This could result in a loss of funds given the right external conditions.

2 β€” Med (M): vulns have a risk of 2 and are considered β€œMedium” severity when assets are not at direct risk, but the function of the protocol or its availability could be impacted, or leak value with a hypothetical attack path with stated assumptions, but external requirements.

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