{"id":3638,"date":"2021-11-17T03:22:44","date_gmt":"2021-11-17T03:22:44","guid":{"rendered":"https:\/\/blog.mathwallet.org\/?p=3638"},"modified":"2022-07-18T02:27:27","modified_gmt":"2022-07-18T02:27:27","slug":"caution-malicious-approve","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.org\/?p=3638","title":{"rendered":"Caution Malicious Approve"},"content":{"rendered":"<h2 id=\"toc_0\">What is an Approve?<\/h2>\n<p>Approve is to allow another account (It can be an ordinary personal account or a contract account), which can control your asset without your permission. Approve is a very dangerous action.<\/p>\n<h2 id=\"toc_1\">Why Approve?<\/h2>\n<p>Approve widely exists in ETH, TRON and all EVM compatible public chain<\/p>\n<p>Approve is like pre-authorized debit in Paypal, it allows dapp finish a set of operations automatically and save cost. Ex, it is heavily used in Uniswap\/Opensea, etc.<\/p>\n<p>Approve is a 0 amount transaction, and you need to pay attention to all transaction confirmation window<\/p>\n<p><img style=\"width: 350px;\" src=\"http:\/\/qiniu.eth.fm\/2021-11-17-WechatIMG676.jpeg\" alt=\"\"><\/p>\n<h2 id=\"toc_2\">Approve Scams<\/h2>\n<p>Malicious dapp will leverage different ways to get your approve and transfer all your assets<\/p>\n<h2 id=\"toc_3\">How to prevent<\/h2>\n<p>1 Don&#8217;t play DApps from unknown sources,<\/p>\n<p>2 Regularly use<\/p>\n<p>Etherscan <a href=\"https:\/\/etherscan.io\/tokenapprovalchecker\">https:\/\/etherscan.io\/tokenapprovalchecker<\/a><\/p>\n<p>Revoke <a href=\"https:\/\/revoke.cash\/\">https:\/\/revoke.cash\/<\/a><\/p>\n<p>DeBank <a href=\"https:\/\/debank.com\/\">https:\/\/debank.com\/<\/a><\/p>\n<p>Cointool <a href=\"https:\/\/cointool.app\">https:\/\/cointool.app<\/a><\/p>\n<p>Tronscan(TRON) <a href=\"https:\/\/tronscan.org\">https:\/\/tronscan.org<\/a><\/p>\n<p>to cancel the approval<\/p>\n\n\n<p>Let\u2019s use Etherscan (<a rel=\"noreferrer noopener\" href=\"https:\/\/etherscan.io\/tokenapprovalchecker\" target=\"_blank\">https:\/\/etherscan.io\/tokenapprovalchecker<\/a>) to revoke an NFT approval as an example:<\/p>\n\n\n\n<p>1 Click \u2018Connect to Web3\u2019 and connect your MathWallet<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/upload\/1.png\" alt=\"\" width=\"435\" height=\"256\"\/><\/figure>\n\n\n\n<p>2 Switch to ERC-721 tab<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/upload\/2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>3 If you do not know the source of the Approved Spender (such as Opensea, Looksrare), please click the \u2018Revoke\u2019 button and submit the revoke transaction.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is an Approve? Approve is to allow another account (It can be an ordinary personal account or a contract account), which can control your asset without your permission. Approve is a very dangerous action. Why Approve? Approve widely exists in ETH, TRON and all EVM compatible public chain Approve is like pre-authorized debit in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"unlock_protocol_post_locks":""},"categories":[1],"tags":[55,9],"_links":{"self":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3638"}],"collection":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3638"}],"version-history":[{"count":6,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3638\/revisions"}],"predecessor-version":[{"id":4012,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3638\/revisions\/4012"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}