cosmos / ibc-rs

Rust implementation of the Inter-Blockchain Communication (IBC) protocol.
Apache License 2.0
197 stars 79 forks source link

`MsgTimeoutOnClose` verifies wrong proof for closed channel state #1217

Closed rnbguy closed 4 months ago

rnbguy commented 4 months ago

Bug Summary

The current logic for MsgTimeoutOnClose uses proof_unreceived_on_b instead of proof_close_on_b during channel state verification.

Details

https://github.com/cosmos/ibc-rs/blob/4ea4dcb863efa12f5628a05588e2207112035e4a/ibc-core/ics04-channel/src/handler/timeout_on_close.rs#L105-L118

Version

till v0.52.0