Trader Joe contest - Jujic'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: 9/39

Findings: 3

Award: $1,616.67

🌟 Selected for report: 2

πŸš€ Solo Findings: 1

Findings Information

🌟 Selected for report: Jujic

Labels

bug
2 (Med Risk)
disagree with severity
sponsor confirmed

Awards

1556.9237 USDT - $1,556.92

External Links

Handle

Jujic

Vulnerability details

Impact

The rJoePerSec does not have any upper or lower bounds. Values that are too large will lead to reversions in several critical functions.

Proof of Concept

https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/RocketJoeStaking.sol#L151

function updateEmissionRate(uint256 _rJoePerSec) external onlyOwner { updatePool(); rJoePerSec = _rJoePerSec; emit UpdateEmissionRate(msg.sender, _rJoePerSec); }

Tools Used

Remix

Consider define upper and lower bounds on the _rJoePerSec.

#0 - cryptofish7

2022-01-31T22:10:09Z

Confirming issue but disagree with severity.

Fix: https://github.com/traderjoe-xyz/rocket-joe/pull/112

Findings Information

🌟 Selected for report: cccz

Also found by: Czar102, Jujic, Meta0xNull, Ruhum, defsec, jayjonah8, kirk-baird, p4st13r4, pauliax, robee, wuwe1

Labels

bug
duplicate
1 (Low Risk)

Awards

13.5716 USDT - $13.57

External Links

Handle

Jujic

Vulnerability details

Impact

The functions initialize() can be called by anyone the first time, which allows an attacker to set the address rocketJoeFactory of the contract .

Proof of Concept

https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/RocketJoeToken.sol#L25-L32

function initialize() external { require( address(rocketJoeFactory) == address(0), "RocketJoeToken: already initialized" ); rocketJoeFactory = IRocketJoeFactory(msg.sender); }

Tools Used

Remix

Add modifier

#0 - cryptofish7

2022-01-30T21:34:54Z

Duplicate of #68

#1 - dmvt

2022-02-22T10:44:08Z

Duplicate of #8

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