<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Oren Yomtov</title>
        <link>https://paragraph.com/@orenyomtov</link>
        <description>blockchain researcher @fireblockshq</description>
        <lastBuildDate>Sun, 29 Nov 2026 00:22:16 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Oren Yomtov</title>
            <url>https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d46ab34feb273162507bd5a3a45881ad7e2cd8707fb8889410950825ce9c8d4e.jpg</url>
            <link>https://paragraph.com/@orenyomtov</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Velas Infinite Mint Vulnerability Writeup]]></title>
            <link>https://paragraph.com/@orenyomtov/velas-infinite-mint-vulnerability-writeup</link>
            <guid>JqRk9KoupL6Ya3PvPna5</guid>
            <pubDate>Thu, 24 Nov 2022 16:21:05 GMT</pubDate>
            <description><![CDATA[The infinite inflation of VLX could have destroyed Velas’ $100M market cap, but the threat has been mitigated thanks to the responsible disclosure of the vulnerability, and the resulting security fix (commit). After spending some time writing infrastructure for finding smart contracts vulnerabilities, I stumbled upon pwning.eth’s great writeups for “delegatecall -> precompiled smart contract”-type bugs found in the implementations of blockchain nodes. It struck me as the type of pitfall that ...]]></description>
            <content:encoded><![CDATA[<p>The infinite inflation of VLX could have destroyed Velas’ $100M market cap, but the threat has been mitigated thanks to the responsible disclosure of the vulnerability, and the resulting <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/velas/velas-chain/releases/tag/v0.5.3">security fix</a> (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/velas/velas-chain/commit/ad8a41071eae26afc281c42bf3e35b7826c782a1#diff-53c51a81cf92f32ae4c44d8c7c8d3fb10d9c78e3df0bb3d4fcea0c8f73b5d437R133">commit</a>).</p><p>After spending some time writing infrastructure for finding smart contracts vulnerabilities, I stumbled upon <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/PwningEth">pwning.eth’s</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pwning.mirror.xyz/CB4XUkbJVwPo7CaRwRmCApaP2DMjPQccW-NOcCwQlAs">great</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pwning.mirror.xyz/okyEG4lahAuR81IMabYL5aUdvAsZ8cRCbYBXh8RHFuE">writeups</a> for “delegatecall -&gt; precompiled smart contract”-type bugs found in the implementations of blockchain nodes.</p><p>It struck me as the type of pitfall that would require deep EVM internals knowledge in order to avoid, so I decided to change my research focus from smart contracts, to the blockchain nodes themselves.</p><p>To follow what comes next, I recommend you <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/immunefi/aurora-infinite-spend-bugfix-review-6m-payout-e635d24273d#b405">read this great analysis</a> to understand how this class of bugs work.</p><p>In any case, the important takeaway to keep in mind is that an attacker can trick a precompiled contract they’re sending assets to it, if the precompiled contract’s implementation doesn’t make sure it’s not called using <code>delegatecall</code>.</p><h2 id="h-let-the-games-begin" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Let the games begin</h2><p>I opened <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://defillama.com/chains/EVM">DefiLlama’s list of top EVM chains</a>, and started auditing them one by one.</p><p>Most blockchains didn’t add any new precompiled contracts, and only had the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.evm.codes/precompiled">ones forked from Ethereum</a>.</p><p>Some blockchains introduced new precompiled contracts, but they didn’t touch anything sensitive.</p><p>Some blockchains introduced new precompiled contracts that touched sensitive areas, but also implemented the relevant guardrail of not allowing them to be called with <code>delegatecall</code>.</p><p>And then came Velas.</p><h2 id="h-whats-velas" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What’s Velas?</h2><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://velas.com/en">Velas</a> is a hybrid chain, leveraging Solana’s high transaction throughput (up to 65k TPS), together with Ethereum’s Virtual Machine (EVM), the de-facto standard for smart contract execution in the blockchain space.</p><h3 id="h-how-does-velas-work" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">How does Velas work?</h3><p>Velas’ chain supports EVM transaction execution via wrapping it into a regular native (Solana-like) transaction with an instruction to invoke an EVM Program which executes the wrapped EVM transaction inside the chain’s embedded EVM.</p><p>You can hold the chain’s native currency, VLX, in &quot;Solana space&quot; aka &quot;Native space&quot;, or in &quot;EVM space&quot;.</p><p>When it’s in Native space, it’s owned by your Native, Solana-type account.</p><p>And when it’s in EVM space it belongs to an EVM address, while in the Native space it’s represented as being held “in custody&quot; by the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://native.velas.com/address/EvmState11111111111111111111111111111111111">EvmState account</a>.</p><h3 id="h-how-do-you-bridge-vlx-from-evm-space-to-native-space" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">How do you bridge VLX from EVM space to Native space?</h3><p>The way to bridge VLX from the EVM space to Native space is to send a transaction to a precompiled contract called <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/velas/velas-chain/blob/031a0a1186c20d298f7472b7294db4ec19be3d82/evm-utils/programs/evm_loader/src/precompiles/builtins.rs#L98">ETH_TO_VLX</a> at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://evmexplorer.velas.com/address/0x56454c41532D434841494e000000000053574150">0x56454c41532D434841494e000000000053574150</a>:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/67277fb60db0a4049e96b0c3fcf4807826acae5a5cd708bd209950c8f5aa01fc.png" alt="/evm-utils/programs/evm_loader/src/precompiles/builtins.rs" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">/evm-utils/programs/evm_loader/src/precompiles/builtins.rs</figcaption></figure><p>Which has following interface:</p><pre data-type="codeBlock" text="interface ETH_TO_VLX {
  function transferToNative(bytes32 native_recipient) external payable;
}
"><code><span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">ETH_TO_VLX</span> </span>{
  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">transferToNative</span>(<span class="hljs-params"><span class="hljs-keyword">bytes32</span> native_recipient</span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">payable</span></span></span>;
}
</code></pre><h2 id="h-vulnerability-breakdown" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Vulnerability Breakdown</h2><p>This bug is very similar to the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/immunefi/aurora-infinite-spend-bugfix-review-6m-payout-e635d24273d">Aurora</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pwning.mirror.xyz/okyEG4lahAuR81IMabYL5aUdvAsZ8cRCbYBXh8RHFuE">Moonbeam</a> bugs.</p><p>It’s caused by the <code>ETH_TO_VLX</code> precompiled contract not taking into account it can be called with <code>delegatecall</code>, and thus not properly verifying that the funds it’s being asked to bridge are actually being sent to it.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/orenyomtov/velas-infinite-mint-poc">The vulnerability’s PoC</a> creates a smart contract which calls this precompiled contract using <code>delegatecall</code> which doesn&apos;t actually send the VLX tokens to it, but it does trick it into transferring the corresponding amount of VLX to our Native space account.</p><p>This process can be repeated to steal all the VLX tokens owned by the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://native.velas.com/address/EvmState11111111111111111111111111111111111">EVMSTATE</a> Native account, while also minting an infinite amount of VLX tokens in the EVM space.</p><p>The infinite inflation of VLX could have seriously damaged the whole ecosystem of Velas (the market-cap of VLX was 100 million dollars at the time of disclosure).</p><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">🙏🏻🤝🏻</h2><p>I’d like to thank <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/MitchellAmador">Mitchell</a> of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://immunefi.com/">Immunefi</a> for his gracious pro-bono assistance with the vulnerability’s disclosure, out of his deep commitment for securing the crypto space (it wasn’t as straightforward because Velas does not have a bug bounty program).</p><p>I wouldn’t have gone this particular research path if it wasn’t for <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/PwningEth">pwning.eth’s</a> inspiring <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pwning.mirror.xyz/">writeups</a>. First of all for the merit of their top-notch technical breakdowns, and second of all for their unique and engaging literary style that makes them a joy to read.</p><p>Last but not least, I would like to thank Roman and the rest of the Velas team for their decision to reward me a $100k bounty for the disclosure (denominated in VLX staked for 6 months), and for releasing the security fix so quickly (released within 23 hours).</p>]]></content:encoded>
            <author>orenyomtov@newsletter.paragraph.com (Oren Yomtov)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a2ed57fa2e260c68ccadce5bff5985b6052c8847e8fd2bb63e89f008524a38ba.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>