Open hats-bug-reporter[bot] opened 5 months ago
This is not possible. Pearlmit
uses hashTypedDataV4
from OZ
which account for chain id, contract name and version.
function _checkPermitBatchApproval(IPearlmit.PermitBatchTransferFrom calldata batch, bytes32 hashedData) internal {
bytes32 digest = _hashTypedDataV4(PearlmitHash.hashBatchTransferFrom(batch, _masterNonces[batch.owner]));
...
Github username: @mgf15 Twitter username: -- Submission hash (on-chain): 0x2f20ea88bd1feeb1f9e98b69455e0763b8d6a5521b2dd902820013b36148c9ac Severity: medium
Description: Description\ Mistakes made on one chain can be re-applied to a new chain Attack Scenario\ There is no
chain.id
in the signed data Attachments