Closed sherlock-admin2 closed 4 days ago
Abundant Walnut Rooster
Low/Info
Missing CPI result validation will cause initialization state inconsistency for the protocol as the OApp registration could silently fail while the initialization appears successful.
In oapp_config.rs:33, the registration CPI call result is not checked: https://github.com/sherlock-audit/2024-09-orderly-network-solana-contract/blob/main/solana-vault/packages/solana/contracts/programs/solana-vault/src/state/oapp_state/oapp_config.rs#L33-L41
Not an attack vector per se, but a vulnerability path:
The protocol suffers from an inconsistent state where:
No response
Abundant Walnut Rooster
Low/Info
Unchecked CPI Result in OApp Registration
Summary
Missing CPI result validation will cause initialization state inconsistency for the protocol as the OApp registration could silently fail while the initialization appears successful.
Root Cause
In oapp_config.rs:33, the registration CPI call result is not checked: https://github.com/sherlock-audit/2024-09-orderly-network-solana-contract/blob/main/solana-vault/packages/solana/contracts/programs/solana-vault/src/state/oapp_state/oapp_config.rs#L33-L41
Internal pre-conditions
External pre-conditions
Attack Path
Not an attack vector per se, but a vulnerability path:
Impact
The protocol suffers from an inconsistent state where:
PoC
No response
Mitigation
No response