Sushi Trident contest phase 1 - 0xRajeev's results

Community-driven DeFi platform

General Information

Platform: Code4rena

Start Date: 16/09/2021

Pot Size: $200,000 SUSHI

Total HM: 26

Participants: 16

Period: 14 days

Judge: alcueca

Total Solo HM: 13

Id: 29

League: ETH

Sushi

Findings Distribution

Researcher Performance

Rank: 6/16

Findings: 3

Award: $11,966.10

🌟 Selected for report: 16

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: cmichel

Also found by: 0xRajeev

Labels

bug
duplicate
2 (Med Risk)

Awards

95.3079 SUSHI - $1,191.35

External Links

Handle

0xRajeev

Vulnerability details

Impact

If the user deposits less ETH than claimed by the params.tokenIn for native functions, then wETH is transferred from the msg.sender to pool, while the user's ETH is left behind in the Router.

Proof of Concept

https://github.com/sushiswap/trident/blob/37a57ec00676fc34ffb9c346917b02cee426d92d/contracts/TridentRouter.sol#L329-L336

https://github.com/sushiswap/trident/blob/37a57ec00676fc34ffb9c346917b02cee426d92d/contracts/TridentRouter.sol#L105

https://github.com/sushiswap/trident/blob/37a57ec00676fc34ffb9c346917b02cee426d92d/contracts/TridentRouter.sol#L119

Tools Used

Manual Analysis

For a safe user experience, Router should refund remaining ETH at the end of transaction.

#0 - alcueca

2021-10-27T04:52:51Z

Can't find a duplicate, @maxsam4?

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