Rubicon contest - camden's results

An order book protocol for Ethereum, built on L2s.

General Information

Platform: Code4rena

Start Date: 23/05/2022

Pot Size: $50,000 USDC

Total HM: 44

Participants: 99

Period: 5 days

Judge: hickuphh3

Total Solo HM: 11

Id: 129

League: ETH

Rubicon

Findings Distribution

Researcher Performance

Rank: 42/99

Findings: 2

Award: $162.75

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathToken.sol#L565

Vulnerability details

There's no check here for the return value. Many ERC20 tokens will revert on issues with the transfer, but the ERC20 standard only requires returning a boolean value for success.

You should use SafeERC20 to check return values

#0 - bghughes

2022-06-03T23:40:36Z

Duplicate of #316

Findings Information

🌟 Selected for report: PP1004

Also found by: GimelSec, camden, unforgiven

Labels

bug
duplicate
2 (Med Risk)

Awards

162.6494 USDC - $162.65

External Links

Lines of code

https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathToken.sol#L470

Vulnerability details

Because _deposit does a check for deflationary tokens and previewMint doesn't, the number of shares minted by the mint function will not be equal for deflationary tokens, causing these to always fail

The fix is to remove the require in the mint function.

#0 - bghughes

2022-06-03T23:20:40Z

Duplicate of #126

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