github.com/cosmos/interchain-security/v5
Affected
- introduced
5.1.0, fixed5.2.0(semver)
Fixed versions
5.2.0
Fix
- Fixed version
5.2.0go get github.com/cosmos/interchain-security/[email protected]
Advisory
Also known as: GO-2024-3121
Interchain Security: The signers of ICS messages do not need to match the provider address
Context
ICS has the following four messages that enable validators on the provider chain to perform different actions:
MsgOptIn -- adds a validator to the consumer chain’s active setMsgOptOut -- removes a validator from the consumer chain’s active set MsgAssignConsumerKey -- changes the consensus key used for a validator’s operations on a consumer chainMsgSetConsumerCommissionRate -- sets a validator’s consumer-specific commission rateNormally, only the respective validators are allowed to perform these actions.
Issue
The upgrade to SDK 0.50, introduced a signer field to these messages. This field is used to authenticate the user sending the message to the system. However, there was no validation on the ICS side to check if the signer matches the provider address.
As a result, any user could opt-in, opt-out, change the commission rate, or change what public key a validator uses on a consumer chain.
For more context, check out the code:
Severity assessment
The severity assessment is based on this framework.
Potential impact: Catastrophic
Likelihood: Rare
High Basis: The source's own band: HIGH
5.1.0, fixed 5.2.0 (semver)5.2.0
5.2.0go get github.com/cosmos/interchain-security/[email protected]0 (semver)None listed
No fixed version is listed.
0 (semver)None listed
No fixed version is listed.
0 (semver)None listed
No fixed version is listed.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0