Signatures for SignaturePayload can be re-interpreted to be signatures for distinct messages #2947
Closed
2 tasks done
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
polkadot-sdk/substrate/primitives/runtime/src/generic/unchecked_extrinsic.rs
Lines 245 to 262 in 1914775
The potential reduction, which I can't identify the reasoning for in the first place, means that a hashed message can be re-interpreted as a message itself (or an unhashed 32-byte message can be reinterpreted as the hash of a longer message, yet this requires finding a preimage).
This shouldn't practically be an issue due to the lack of 32-byte messages in the ecosystem. Extrinsic almost always has several extensions which will place its payload far beyond 32 bytes. It'd require a distinct use of SignaturePayload, which I presume unlikely.
I did follow responsible disclosure on this, as it is arguable as a critical fault in the signature as a formal object, and was told it's a non-issue I'm welcome to publicly disclose.
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: