-
Notifications
You must be signed in to change notification settings - Fork 0
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
Summa.sol
: Issue with submitProofOfAddressOwnership()
#7
Comments
Issue#2: proofIndex generation does no take into account the name of the chain To expand on the points given, it is not uncommon to have the same address on multiple chains (e.g. Ethereum Mainnet and a EVM derived change). Wouldn't using the address only for the hash will result in address of these chains to have the same hash, albeit they're separate wallets? Could this potentially leads to an address of 1 chain to be verified, while the same address on another chain to not needing verification? |
Agree that it is kinda confusing in the current implementation what is considered unique: |
As a general note: I think Summa should incorporate domain separation |
This is a valid concern when dealing with different blockchain architectures, not chains. Imagine a situation when one exchange claims the ownership of |
Describe the bug
Issue#1:
submitProofOfAddressOwnership()
does not allow to resubmitAddressOwnershipProof
twiceCurrently the require check at Summa.sol#L120 allows the
onlyOwner
to add theAddressOwnershipProof
associated with thecexAddress
only once.But imagine a scenario, wherein wrong signature or message was submitted during the first iteration, it that case, there is no way to update these values in the future.
Issue#2:
proofIndex
generation does no take into account the name of the chainThe root cause of the issue can be slightly linked to the first issue, The hash calculation at Summa.sol#L117 does not take into consideration the chain as the input during calculation. While this might not look an issue for EVM chains. But when considering a multi chain architecture, using at least two input for generating the hash is a good practice. Currently thinking of a practical impact due to this.
To Reproduce
Yet to update PoC
Expected behavior
Issue#1:
submitProofOfAddressOwnership()
does not allow to resubmitAddressOwnershipProof
twiceI my opinion , since the
submitProofOfAddressOwnership()
is permissioned(can only be called by onlyOwner), updating the message and signature should be allowed.Issue#2:
proofIndex
generation does no take into account the name of the chainMake the following changes in the
addressHash
generation to generate a more unique hashAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: