You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
From Tom Jack:
"now, here's my impersonation example: I call the erc1155 Balance_of_batch method. I pass a lambda which generates a On_erc1155_batch_received transfer to the victim erc1155_token_receiver the erc1155 thinks this is an innocent "view" operation, but it is not"
"the correct way is for the caller of Balance_of_batch to pass a (balance_request * nat list)contract instead of the lambda, and for the erc1155 to (carefully) construct the TRANSFER_TOKENS (or perhaps address instead of contract, unclear).
this is still somewhat tricky, you need to ensure that the type (balance_request * nat list) cannot be used for "impersonation"
e.g. is incompatible with the types for On_erc1155_batch_received"
┆Created By: tqbot
The text was updated successfully, but these errors were encountered:
From Tom Jack:
"now, here's my impersonation example: I call the erc1155
Balance_of_batch
method. I pass a lambda which generates aOn_erc1155_batch_received
transfer to the victimerc1155_token_receiver
the erc1155 thinks this is an innocent "view" operation, but it is not""the correct way is for the caller of
Balance_of_batch
to pass a(balance_request * nat list)
contract instead of the lambda, and for the erc1155 to (carefully) construct theTRANSFER_TOKENS
(or perhaps address instead of contract, unclear).this is still somewhat tricky, you need to ensure that the type
(balance_request * nat list)
cannot be used for "impersonation"e.g. is incompatible with the types for
On_erc1155_batch_received
"┆Created By: tqbot
The text was updated successfully, but these errors were encountered: