Critical ThirdWeb Smart Contract Vulnerability Exposes ERC-721 and ERC-1155 Contracts

The Web3 development ecosystem faced a significant security scare on December 5, 2023, when ThirdWeb, a widely used smart contract deployment platform with over 70,000 developers, publicly disclosed a critical vulnerability affecting its pre-built smart contracts. The flaw, rooted in an incompatibility between the ERC-2771 meta-transaction standard and Multicall functionality, threatened a broad range of NFT and token contracts across the Ethereum ecosystem and beyond.

The Exploit Mechanics

At the heart of this vulnerability lies a subtle interaction between two trusted open-source libraries. The ERC-2771 standard enables meta-transactions, allowing users to interact with smart contracts without paying gas fees directly. When combined with Multicall — a pattern that batches multiple function calls into a single transaction — the interaction creates an opening for address spoofing attacks. Specifically, an attacker could manipulate the msg.sender value within a meta-transaction context, effectively impersonating any address and executing actions on behalf of other users without their consent.

The affected contracts include ThirdWeb’s DropERC20, ERC721, ERC1155 across all versions, and AirdropERC20. These are among the most commonly deployed contract templates in the Web3 space, used for NFT mints, token distributions, and marketplace operations. ThirdWeb became aware of the vulnerability on November 20, 2023, and worked for two weeks to understand the full scope before making the public disclosure.

Affected Systems

The reach of this vulnerability extends well beyond ThirdWeb’s own contracts. Because the flawed code resides in a commonly used open-source library, any project that incorporated the same ERC-2771 and Multicall pattern could be affected. NFT collections deployed using ThirdWeb’s pre-built templates before November 22, 2023, are specifically at risk. Projects operating marketplaces, gaming contracts, minting platforms, and wallet integrations built on ThirdWeb’s infrastructure all fall within the vulnerability’s scope.

With Bitcoin trading around $44,080 and Ethereum at $2,293 on the day of the disclosure, the total value locked in potentially affected contracts represents hundreds of millions of dollars in digital assets. The fact that no exploitation had been detected prior to the disclosure speaks to both the subtlety of the vulnerability and the limited window of opportunity for responsible disclosure.

The Mitigation Strategy

ThirdWeb responded with a multi-pronged approach. First, the company developed and deployed a mitigation tool allowing contract owners to patch their deployed contracts without requiring a full migration. Second, they coordinated with the maintainers of the underlying open-source library to issue a fix upstream. Third, they recommended that all users revoke token approvals on affected contracts using platforms like revoke.cash, as suggested by DefiLlama developer 0xngmi.

In a show of commitment to ecosystem security, ThirdWeb doubled its bug bounty payouts from $25,000 to $50,000 and committed to covering mitigation costs for affected users through a dedicated grant program. The company also pledged to implement more rigorous auditing processes for all future contract releases.

Lessons Learned

The ThirdWeb incident underscores several critical truths about Web3 security. First, even trusted, widely-used open-source libraries can harbor subtle vulnerabilities that escape detection for extended periods. The combination of two individually secure components — ERC-2771 and Multicall — created an emergent vulnerability that neither component exhibited in isolation. This class of composability bugs represents one of the most challenging categories in smart contract security.

Second, the incident highlights the importance of rapid, coordinated disclosure. ThirdWeb’s two-week internal investigation window allowed them to develop mitigation tools before public disclosure, potentially preventing exploitation during the most vulnerable period. Third, the scale of impact — affecting contracts across the entire Web3 ecosystem — demonstrates how platform dependencies create systemic risk.

User Action Required

If you hold NFTs or tokens from projects deployed using ThirdWeb’s pre-built contracts, take immediate action. Check whether the project team has applied the mitigation patch. Use revoke.cash to review and revoke any unnecessary token approvals on your wallet. Follow the project’s official channels for updates on contract migration or patching. Consider using a hardware wallet for high-value assets as an additional layer of protection against approval-based attacks.

Disclaimer: This article is for informational purposes only and does not constitute financial or investment advice. Always conduct your own research before making any financial decisions.

🌱 FOR BUSINESSES BitcoinsNews.com
Reach 100K+ Crypto Readers
Sponsored content, press releases, banner ads, and newsletter placements. Put your brand in front of Bitcoin's most engaged audience.

4 thoughts on “Critical ThirdWeb Smart Contract Vulnerability Exposes ERC-721 and ERC-1155 Contracts”

  1. ERC-2771 and Multicall together was always a footgun waiting to happen. The meta-transaction spec literally trusts a forwarded address without二次验证, combine that with batching and of course you get impersonation

  2. 70k developers using these templates. how many deployed contracts are actually affected though? the article doesn’t give a number and that’s the one that matters

    1. ^ right, thirdweb said they contacted projects directly but we still dont know the blast radius. some of those NFT drops had millions in volume

  3. This is why I never use pre-built contract templates without reading every line. Composability bugs are the hardest to catch in audit.

Leave a Comment

Your email address will not be published. Required fields are marked *

BTC$73,784.00+0.5%ETH$2,019.84+0.3%SOL$82.67+0.8%BNB$722.93+12.2%XRP$1.34+0.7%ADA$0.2357+1.1%DOGE$0.1004+0.8%DOT$1.19-0.7%AVAX$8.94+1.3%LINK$9.19+1.8%UNI$3.06+1.2%ATOM$2.01-0.5%LTC$52.37+0.9%ARB$0.1035+0.2%NEAR$2.25-5.7%FIL$0.9707+1.2%SUI$0.9101+0.6%BTC$73,784.00+0.5%ETH$2,019.84+0.3%SOL$82.67+0.8%BNB$722.93+12.2%XRP$1.34+0.7%ADA$0.2357+1.1%DOGE$0.1004+0.8%DOT$1.19-0.7%AVAX$8.94+1.3%LINK$9.19+1.8%UNI$3.06+1.2%ATOM$2.01-0.5%LTC$52.37+0.9%ARB$0.1035+0.2%NEAR$2.25-5.7%FIL$0.9707+1.2%SUI$0.9101+0.6%
Scroll to Top