Blockchain Transaction Lifecycle Security Standard Audit Framework
previous: Enable Canceling
Transactions | Contents | next: Verify Received
Transactions
Check Complete Hashes and
Addresses
Statement of Requirement
All Actors that
perform Address or Hash verification MUST compare entire addresses
See it in
the specification
Applicability
All Roles
Purpose
Protect against attacks that construct similar addresses
Audit Procedure
Determine where addresses and hashes are compared, how each
comparison is performed, and whether it is performed by software or by a
person.
For a comparison performed by software, verify that the whole value
is compared over a canonical encoding, and that any normalisation needed
for the comparison to be meaningful is applied first.
For a comparison performed by a person, verify that the interface
presents the whole value in a form that supports comparison, and that
the value it is compared against is drawn from an independent source,
such as a stored address book entry or a previously indexed transaction,
rather than from the request that proposed it.
Comparing hashes of two values is equivalent to comparing the values
themselves, and meets this requirement.
Success Criteria
- Comparisons performed by software cover the whole value, over a
canonical encoding, with any necessary normalisation applied first
- Comparisons performed by a person present the whole value, and
compare it against an independently sourced reference
Best Practice
- Addresses are checked against a configured allow list or address
book, so that a comparison does not depend solely on a person reading a
long value accurately.
- UI to assist human comparison e.g. "Diff"-syle
Failure Criteria
- Address or hash verification procedures only compare a segment of
the value, such as the first or last n bytes
- A comparison performed by software depends on an encoding that is
not normalised first, so that two encodings of the same value do not
match
- A person is asked to compare a value against the request that
proposed it, with no independent reference available
Common Failure Patterns
- Comparing a checksummed address against the same address in a
different case
Key Evidence
- System documentation
- Source Code
- Address book or allow list configuration
- Reperformance
- Fuzzing
previous: Enable Canceling
Transactions | Contents | next: Verify Received
Transactions