FairSide contest - pauliax's results

FairSide Network

General Information

Platform: Code4rena

Start Date: 20/05/2021

Pot Size: $55,000 USDC

Total HM: 19

Participants: 8

Period: 7 days

Judge: cemozer

Total Solo HM: 11

Id: 11

League: ETH

FairSide

Findings Distribution

Researcher Performance

Rank: 5/8

Findings: 5

Award: $2,912.73

🌟 Selected for report: 3

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: shw

Also found by: a_delamo, cmichel, pauliax

Labels

bug
duplicate
3 (High Risk)

Awards

1297.0112 USDC - $1,297.01

External Links

Handle

pauliax

Vulnerability details

Impact

contract Withdrawable function withdraw() does not subtract from pendingWithdrawals thus it only increases and could make function getReserveBalance() revert when the balance < pendingWithdrawals.

Add this line to withdraw(): pendingWithdrawals = pendingWithdrawals.sub(reserveAmount);

#0 - fairside-core

2021-05-30T13:08:33Z

Duplicate of #72, should be increased in severity.

Findings Information

🌟 Selected for report: 0xRajeev

Also found by: gpersoon, pauliax, shw

Labels

bug
duplicate
2 (Med Risk)

Awards

262.6448 USDC - $262.64

External Links

Handle

pauliax

Vulnerability details

Impact

function addRegistrationTributeGovernance mistakenly calls _addTribute. Function_addGovernanceTribute is never called thus governance tributes are never set nor updated.

Replace '_addTribute' with '_addGovernanceTribute' in function addRegistrationTributeGovernance.

#0 - fairside-core

2021-05-30T13:30:30Z

Duplicate of #20

Findings Information

🌟 Selected for report: shw

Also found by: cmichel, pauliax, s1m0

Labels

bug
duplicate
1 (Low Risk)

Awards

262.6448 USDC - $262.64

External Links

Handle

pauliax

Vulnerability details

Impact

function getEtherPrice() invokes ETH_CHAINLINK.latestRoundData(). However, there are no checks if the return value indicates stale data. This could lead to stale prices according to the Chainlink documentation: “if answeredInRound < roundId could indicate stale data.” “A timestamp with zero value means the round is not complete and should not be used.”

This issue was originally described by the leading hacker @cmichelio (kudos to him) in Maple finance contest: https://github.com/code-423n4/2021-04-maple-findings/issues/82

Add missing checks for stale data. See example here: https://github.com/cryptexfinance/contracts/blob/master/contracts/oracles/ChainlinkOracle.sol#L58-L65

#0 - fairside-core

2021-05-30T13:22:02Z

Duplicate of #70

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