ibc: Chain ID parsing incorrectly accepts newlines #4547
Labels
consensus-breaking
breaking change to execution of on-chain data
_P-V1
Priority: slated for V1 release
zellic-ibc-needs-remediation
Finding by Zellic reviewing the IBC component, needs remediation
Describe the bug
When parsing chain IDs, ibc-types uses a more lenient regex than ibc-go's regex.
For example, ibc-go will consider the chain ID \n-foo-1 to have revision number 0, whereas penumbra-ibc will consider it to have revision number 1.
This likely does not have any security impact, but it is a deviation from the specification and can potentially lead to an issue in the future.
Expected behavior
Include a newline (and possibly anchors) in ibc-types's version of the regex.
The text was updated successfully, but these errors were encountered: