hard20 pts · first answer countssmart-contract-securityaccess-controlapprovals
Pulling tokens from any address
A deposit function takes a from parameter and calls token.transferFrom(from, address(this), amount), crediting the deposit to msg.sender. What is the bug?
Discussion 0
Join free to post in the discussion.
Related questions
- What msg.sender isBlockchain Developer
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- The checks-effects-interactions orderBlockchain Developer
- What nonReentrant doesBlockchain Developer
- What front-running isBlockchain Developer