Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA Report #51

Open
code423n4 opened this issue Mar 3, 2022 · 2 comments
Open

QA Report #51

code423n4 opened this issue Mar 3, 2022 · 2 comments
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

  1. https://github.com/skalenetwork/ima-c4-audit/blob/main/contracts/MessageProxy.sol

getContractRegisteredRange function: Add a check to see if destination chain is initialized

 require(connectedChains[targetChainHash].inited, "Destination chain is not initialized");
  1. https://github.com/skalenetwork/ima-c4-audit/blob/main/contracts/extensions/interfaces/MessageProxyClient.sol

constructor: zero address check for newMessageProxyAddress at MessageProxyClient.sol#L34 add require(newMessageProxyAddress!=address(0),"Invalid address");

  1. https://github.com/skalenetwork/ima-c4-audit/blob/main/contracts/extensions/ERC721ReferenceMintAndMetadataMainnet.sol

postMessage function : use safetransferFrom instead of transferFrom at ERC721ReferenceMintAndMetadataMainnet.sol#L84

  1. https://github.com/skalenetwork/ima-c4-audit/blob/main/contracts/MessageProxy.sol
    registerExtraContractForAll function : Add 0 address check which is missing on extraContract
@code423n4 code423n4 added QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax bug Something isn't working labels Mar 3, 2022
code423n4 added a commit that referenced this issue Mar 3, 2022
@DimaStebaev
Copy link
Collaborator

Agreed.

@GalloDaSballo
Copy link
Collaborator

getContractRegisteredRange function: Add a check to see if destination chain is initialized

Valid finding

constructor: zero address check for newMessageProxyAddress at MessageProxyClient.sol#L34 add require(newMessageProxyAddress!=address(0),"Invalid address");

Valid as well

postMessage function : use safetransferFrom instead of transferFrom at ERC721ReferenceMintAndMetadataMainnet.sol#L84

Agree with using checked functions even if it's a demo contract

registerExtraContractForAll function : Add 0 address check which is missing on extraContract

Valid as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

3 participants