Float Capital contest - tensors's results

Synthetic assets made simple. No overcollateralization. No liquidation. Not a fork.

General Information

Platform: Code4rena

Start Date: 05/08/2021

Pot Size: $50,000 USDC

Total HM: 9

Participants: 16

Period: 7 days

Judge: 0xean

Total Solo HM: 4

Id: 22

League: ETH

Float Capital

Findings Distribution

Researcher Performance

Rank: 5/16

Findings: 2

Award: $1,975.79

🌟 Selected for report: 2

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: 0xRajeev

Also found by: tensors

Labels

bug
2 (Med Risk)
sponsor disputed
disagree with severity
float-wont-fix

Awards

1053.3363 USDC - $1,053.34

External Links

Handle

tensors

Vulnerability details

Impact

Inputting the wrong address here could lock out a lot of the funds and smart contract methods.

Proof of Concept

https://github.com/code-423n4/2021-08-floatcapital/blob/bd419abf68e775103df6e40d8f0e8d40156c2f81/contracts/contracts/LongShort.sol#L209

https://github.com/code-423n4/2021-08-floatcapital/blob/bd419abf68e775103df6e40d8f0e8d40156c2f81/contracts/contracts/LongShort.sol#L216

Require the changed address to confirm the switch (with a pendingAdmin, pendingTreasury variable.

#0 - JasoonS

2021-08-10T12:30:44Z

0 - non-critical

Those functions are onlyAdmin.

Additionally, the whole LongShort contract is upgradable, so even worst case isn't an issue.

Introducing a mechanism is more likely to introduce an unintended bug than to just leave the code as is.

Something like https://eips.ethereum.org/EIPS/eip-165 is also overkill for this case.

#1 - moose-code

2021-08-11T10:22:32Z

Agree with Jasoons assessment

#2 - Stentonian

2021-08-11T10:30:29Z

Also agree

#3 - 0xean

2021-08-25T01:16:31Z

duplicate of #85

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