-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
Problem description
If the same address is a signer in multiple WalletSimple contract instances, an operation approval signature intended for one contract can be replayed on another WalletSimple contracts.
Cause
The WalletSimple contract address is not included in the operationHash calculation.
Sugested fix
Add address(this) to the operationHash calculation, e.g.:
var operationHash = sha3("ETHER", address(this), toAddress, value, data, expireTime, sequenceId);
TCCinTaiwan
Metadata
Metadata
Assignees
Labels
No labels