Submitted by windhustler
triggerSendFrom -> sendFromDestination message pathway can be used to steal all the balance of the TapiocaOFT and mTapiocaOFT` tokens in case when their underlying tokens is native gas token.
TOFTs that hold native tokens are deployed with erc20 address set to address zero, so while minting you need to transfer value.
The attack flow is the following:
The core issue at play here is that BaseTOFT delegatecalls into the BaseTOFTOptionsModule and thus the BaseTOFT is the msg.sender for sendFrom function.
There is also another simpler attack flow possible:
Foundry
One of the ways of tackling this issue is during the triggerSendFrom to:
0xRektora (Tapioca) confirmed
