Infinity NFT Marketplace contest - 0x52's results

The world's most advanced NFT marketplace.

General Information

Platform: Code4rena

Start Date: 14/06/2022

Pot Size: $50,000 USDC

Total HM: 19

Participants: 99

Period: 5 days

Judge: HardlyDifficult

Total Solo HM: 4

Id: 136

League: ETH

Infinity NFT Marketplace

Findings Distribution

Researcher Performance

Rank: 82/99

Findings: 1

Award: $48.98

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

Lines of code

https://github.com/code-423n4/2022-06-infinity/blob/765376fa238bbccd8b1e2e12897c91098c7e5ac6/contracts/staking/InfinityStaker.sol#L351-L361

Vulnerability details

Impact

If accidentally set incorrectly, getUserStakeLevel will not work as intended

Proof of Concept

If a threshold is accidentally set higher than the tier higher or lower than the tier lower, then the if then else will not perform as expected and assign user incorrect level

Tools Used

Before setting a threshold in updateStakeLevelThreshold check that the new threshold is above the lower threshold and below the higher threshold

#0 - HardlyDifficult

2022-07-11T23:10:20Z

Agree that it would be good to validate the inputs are sorted correctly here. Lowering risk and converting this into a QA report for the warden.

#1 - HardlyDifficult

2022-07-11T23:14:29Z

#2 - HardlyDifficult

2022-07-11T23:15:51Z

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