LooksRare Aggregator contest - ajtra's results

An NFT aggregator protocol.

General Information

Platform: Code4rena

Start Date: 08/11/2022

Pot Size: $60,500 USDC

Total HM: 6

Participants: 72

Period: 5 days

Judge: Picodes

Total Solo HM: 2

Id: 178

League: ETH

LooksRare

Findings Distribution

Researcher Performance

Rank: 52/72

Findings: 1

Award: $36.34

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Summary

Low

  1. L01 - Missing checks for address(0x0) when assigning values to address state variables
  2. L02 - Unused/empty receive()/fallback() function

Non critical

  1. NC01 - Floating pragma and Outdated compiler version
  2. NC02 - Use constant instead of magic number

Low

L01 - Missing checks for address(0x0) when assigning values to address state variables

Mitigation

Add check for address(0x0)

Lines in the code

SeaportProxy.sol#L47 LooksRareProxy.sol#L39

L02 - Unused/empty receive()/fallback() function

Description

If the intention is for the Ether to be used, the function should call another function, otherwise it should revert (e.g. require(msg.sender == address(weth))). Having no access control on the function means that someone may send Ether to the contract, and have no way to get anything back out, which is a loss of funds

Lines in the code

LooksRareAggregator.sol#L220

Non Critical

NC01 - Floating pragma and Outdated compiler version

Description

There are some contract with the pragma solidity directive ^0.8.14 or ^0.8.0. It is recommended to specify a fixed compiler version to ensure that the bytecode produced does not vary between builds. This is especially important if you rely on bytecode-level verification of the code.

Mitigation

Lock the pragma.

Lines in the code

ReentrancyGuard.sol#L2 OwnableTwoSteps.sol#L2 SignatureChecker.sol#L2 LowLevelERC20Approve.sol#L2 LowLevelERC20Transfer.sol#L4 LowLevelERC721Transfer.sol#L2 LowLevelERC1155Transfer.sol#L2 LowLevelETH.sol#L2 IERC20.sol#L2 IERC721.sol#L2 IERC1155.sol#L2

NC02 - Use constant instead of magic number

Description

Replace the magic numbers for a constant that describe the meaning of it.

Lines in the code

LooksRareAggregator.sol#L158

#0 - c4-judge

2022-11-21T16:58:03Z

Picodes marked the issue as grade-b

#1 - c4-sponsor

2022-11-24T18:22:50Z

0xhiroshi requested judge review

#2 - 0xhiroshi

2022-11-24T18:22:54Z

addressed in other issues

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