<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Revokly Blog]]></title><description><![CDATA[Revokly Blog]]></description><link>https://revokly.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6af22b25f421139d5b781738/45bbf026-645d-4a66-8367-91388c508876.png</url><title>Revokly Blog</title><link>https://revokly.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 21:07:04 GMT</lastBuildDate><atom:link href="https://revokly.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Your old token approvals are a loaded gun: how ERC-20 approve, Permit2 and setApprovalForAll get you drained]]></title><description><![CDATA[How token approvals drained $30M+ in 2026 and how to clean yours up for free]]></description><link>https://revokly.hashnode.dev/your-old-token-approvals-are-a-loaded-gun-how-erc-20-approve-permit2-and-setapprovalforall-get-you-drained</link><guid isPermaLink="true">https://revokly.hashnode.dev/your-old-token-approvals-are-a-loaded-gun-how-erc-20-approve-permit2-and-setapprovalforall-get-you-drained</guid><category><![CDATA[Web3]]></category><category><![CDATA[Security]]></category><category><![CDATA[Ethereum]]></category><category><![CDATA[Blockchain]]></category><category><![CDATA[Cryptocurrency]]></category><dc:creator><![CDATA[Bryan]]></dc:creator><pubDate>Tue, 10 Nov 2026 12:17:42 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af22b25f421139d5b781738/b5ed6fb8-3c3b-4538-9ad9-073a1d80be31.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most people think a wallet gets drained when someone steals the seed phrase. In 2026 the more common story is quieter: <strong>an approval you signed months ago gets used against you.</strong></p>
<ul>
<li>January 2026: an aggregator partner (SwapNet) was exploited and about <strong>$16.8M</strong> left users' wallets through approvals they had granted earlier. No new signatures.</li>
<li>The same month, a single wallet lost about <strong>$13.3M</strong> through an approval granted on January 1.</li>
<li>October 29, 2026: Binance lost about <strong>$6.3B</strong> (a different vector — exchange hot wallets), which tells you how active attackers are right now.</li>
</ul>
<p>Here's how approvals actually work, why they're dangerous, and the free scanner I built to clean them up across 6 EVM chains.</p>
<h2>What an approval really is</h2>
<p>ERC-20 tokens don't let contracts pull your funds by default. A dApp first asks you to call:</p>
<pre><code class="language-solidity">function approve(address spender, uint256 amount) external returns (bool);
</code></pre>
<p>After that, <code>spender</code> can call <code>transferFrom(you, anyone, amount)</code> whenever it wants. Two details make this risky:</p>
<ol>
<li><strong>Amount is almost always <code>type(uint256).max</code></strong> — "unlimited", so the UI doesn't have to ask again.</li>
<li><strong>There is no expiry.</strong> The allowance stays until you set it back to 0.</li>
</ol>
<p>NFTs are worse: <code>setApprovalForAll(operator, true)</code> gives one contract every token in a collection.</p>
<h2>Permit and Permit2</h2>
<p><code>permit</code> (EIP-2612) lets you grant an allowance with an off-chain <strong>signature</strong> — no transaction, no gas, and no scary-looking wallet popup. Drainer sites love it.</p>
<p>Uniswap's <strong>Permit2</strong> adds a layer: you approve the Permit2 contract once per token, and apps get spending rights through Permit2 allowances. Cleaning up means checking both the token → Permit2 approval and the Permit2 → app allowances.</p>
<h2>Why "I stopped using that dApp" doesn't help</h2>
<p>The allowance lives in the <strong>token contract</strong>, not in the dApp. When a router, aggregator or bridge contract gets exploited later, the attacker inherits every allowance users ever gave it. That's exactly what happened in the cases above.</p>
<h2>How to clean up</h2>
<p>Revoking = sending <code>approve(spender, 0)</code> (or <code>setApprovalForAll(operator, false)</code>). It costs normal gas: cents on BNB Chain, Base, Arbitrum, Optimism and Polygon.</p>
<p>The annoying part is <em>finding</em> the approvals: they're spread across chains and buried in years of logs. That's why I built <strong><a href="https://revokly.pages.dev">Revokly</a></strong>:</p>
<ul>
<li>scans <strong>Ethereum, BNB Chain, Base, Arbitrum, Optimism and Polygon</strong> in one pass;</li>
<li>shows each spender, token and amount, with unlimited ones flagged;</li>
<li>revokes in one click from MetaMask, Rabby, Trust Wallet or any WalletConnect wallet;</li>
<li>runs in the browser — no signup, keys never leave your wallet, and it only ever asks you to sign <code>approve(spender, 0)</code>.</li>
</ul>
<p>It's free. Feedback very welcome in the comments.</p>
<h2>A 60-second habit</h2>
<ul>
<li>After every new dApp, airdrop claim or mint → re-scan.</li>
<li>When a protocol you used is hacked → revoke immediately, on every chain you used it on.</li>
<li>Savings on a hardware wallet; a small separate hot wallet for experiments.</li>
</ul>
<p>👉 <a href="https://revokly.pages.dev">Check your wallet on Revokly</a> · <a href="https://revokly.pages.dev/learn/wallet-drained-what-to-do">Wallet drained? What to do</a></p>
]]></content:encoded></item></channel></rss>