Nibbl contest - codexploder's results

NFT fractionalization protocol with guaranteed liquidity and price based buyout.

General Information

Platform: Code4rena

Start Date: 21/06/2022

Pot Size: $30,000 USDC

Total HM: 12

Participants: 96

Period: 3 days

Judge: HardlyDifficult

Total Solo HM: 5

Id: 140

League: ETH

Nibbl

Findings Distribution

Researcher Performance

Rank: 23/96

Findings: 2

Award: $65.76

🌟 Selected for report: 0

🚀 Solo Findings: 0

Length are not matched

Contract: https://github.com/code-423n4/2022-06-nibbl/blob/main/contracts/Basket.sol#L41 https://github.com/code-423n4/2022-06-nibbl/blob/main/contracts/NibblVault.sol#L504

Issue: In withdrawMultipleERC721 function, It is not checked whether _tokens.length == _tokenId.length. This means loop can run incorrect number of times

Note: This also need to be fixed for withdrawMultipleERC1155 function

Recommendation: Add below :

require(_tokens.length == _tokenId.length, "Incorrect length"); // for Basket.sol#L41 require(_assetAddresses.length == _assetIDs.length, "Incorrect length"); //for NibblVault.sol#L504

#0 - HardlyDifficult

2022-07-02T22:24:09Z

#1 - HardlyDifficult

2022-07-02T22:25:49Z

#2 - HardlyDifficult

2022-07-03T21:45:38Z

#3 - HardlyDifficult

2022-07-03T21:47:33Z

#4 - HardlyDifficult

2022-07-03T21:51:08Z

#5 - HardlyDifficult

2022-07-03T21:55:03Z

#6 - HardlyDifficult

2022-07-04T15:40:06Z

7 low risk, all valid considerations.

Use ++i instead of i++ for gas savings

Contract https://github.com/code-423n4/2022-06-nibbl/blob/main/contracts/Basket.sol#L43

Recommendation: Use ++i instead of i++ for gas savings. Do this for withdrawMultipleERC721, withdrawMultipleERC1155 and withdrawMultipleERC20 function

#0 - mundhrakeshav

2022-06-25T14:07:17Z

Duplicate of #15

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