Description:
The ensure_erc721_deployment
function checks if a collection is already deployed. However, if this check fails, it deploys a new collection without thoroughly verifying the input parameters.
Location: ensure_erc721_deployment
function in apps/blockchain/starknet/src/bridge.cairo
, from line 428 add validation checks in ensure_erc721_deployment
.
Issue:
Without proper verification, an attacker could potentially manipulate the function to deploy a new collection with unintended parameters, leading to potential misuse or loss of control over assets.
Impact:
Unauthorized or incorrect deployments could lead to loss of assets or operational failures in the bridge.
Tools used: Manual Review.
Recommendations:
Add additional validation to ensure that the deployment of the ERC721 collection is done with verified and trusted parameters.
Potential changes:
Add assertions or validation logic to ensure the parameters for deployment are correct.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.