-
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
Contracts cannot be deployed on arbitrum and optimism #22
Comments
duplicate of an informational, definitely not a medium risk. the highest rating this should receive is an informational, and even then we already knew the deploy script only supported base and mainnet. |
I agree with the Sponsor that the deployment not including arbitrum cannot be considered a medium severity issue |
GalloDaSballo changed the severity to QA (Quality Assurance) |
1 L |
GalloDaSballo marked the issue as grade-b |
Hi @c4-judge, If I may, For setting a medium risk, according to the judging docs, there are no assets at direct risk, just that the contracts on arbitrum and optimism will not be available to due to the missing chainIds. This breaks deployment functionality to those chains and I believe need to be pointed out(as it wasn't in the known issues). Also, based on some historical decisions, e.g this issue in moonwell contest, in which the deployment script was also in scope, was also validated as med risk and I hope this can provide more context for consistency. I'd appreciate if your position on this can be reconsidered, based on the provided appeal. Thanks. |
#52 is dup |
I appreciate the diligence in pushing this back to the surface as the script was made in scope I believe that as Judge I have to decide what the finding quality and impacts are |
Lines of code
https://github.com/code-423n4/2024-10-kleidi/blob/ab89bcb443249e1524496b694ddb19e298dca799/src/deploy/SystemDeploy.s.sol#L21-L28
Vulnerability details
Proof of Concept
From the readme, the contracts are to be deployed on Ethreum, Base, Arbitrum and Optimism. But in SystemDeploy, we can see that the chainIds set are Ethereum, Base, Base-sepolia, and Op-sepolia's instead. Arbitrum's and Op-mainnet's chainId is missing.
We know this because according to the Optimism docs, 11155420 is OP-sepolia's chainId. OP-mainnet's chainId is 10, as mentioned here. Arbitrum's chainIds are mentioned here, 42161 for Arbitrum_One, 42170 for Arbitrum_Nova, both of which are missing from the code's implementation as seen below.
As a result, deployment on Arbitrum and Optimism will be impossible
Recommended Mitigation Steps
Recommend setting Arbitrum's chainId and/or changing the OP chainId to 10.
Assessed type
Context
The text was updated successfully, but these errors were encountered: