There has sadly been an exploit on a few custom implementations for Chimpers, Quirkies, and GVC Strategies.
These contracts had custom upgrades that we created with the teams to add Seaport support, allowing the NFTs to be listed cross-platform. Sadly, an underlying bug allowed for the NFTs to be transferred out and was not found until today.
We've disabled the Seaport integration on GVC and Quirkies which should prevent any further transfers.
Thank you to the Chimpers team and Quit for working swiftly to contain what they could. We'll assess next steps and contact parties involved as soon as possible.
Today, an attacker exploited NFTStrategy contracts for 366 Chimpers, 37 Quirkies, and 15 Sweeps NFTs.
I've blacklisted the attacker's wallet and the strategy contracts on ERC721C List 13 which effectively locks the 344 chimpers (22 were sold) and also protects 340 FWOGS that were at risk still in FWOGSTR. The 37 Quirkies were unfortunately sold before mitigation.
The issue is that buyTargetNFT() lets anyone make the strategy contract call any other contract. The attacker pointed it at Seaport with an order where the strategy itself was the offerer: a listing of every NFT it held for 1 wei each. Typically this would require a signature, which the strategy can't provide, but OpenSea skips that check when the offerer is also msg.sender.
This allowed the attacker, in the next block, to purchase the strategy's entire inventory for dust in a single call.
Other strategies are not at risk of the same exploit as it specifically requires an OpenSea approval, which only a small subset of strategy contracts implemented in order to show their listings on OpenSea's frontend.
i've just shipped a few protocol changes to FWA, with the goal being to support NFT purchasers.
i don't expect these to reignite activity on their own (that will hopefully come from overall NFT activity recovering and ETH trending upwards), but i'd be doing the protocol a disservice if i didn't trim any fat i can to help it succeed, and we know that people purchasing NFTs is essential to the health of the protocol.
the first change is to the punk lister. we've switched the lister so it can buy any publicly listed Punk, which lets it go for the cheapest one rather than only buying from PunkStrategy. this should be more capital efficient.
the second change is to the fee structure of the FWA token itself. there is a 1% buy/sell tax that previously routed 20% to the punk lister and 80% to TokenWorks. we've deployed a new contract that takes the 80% that was going to TW and keeps all of it in the ecosystem by buying FWA back and distributing it to that week's NFT purchasers, vesting linearly over the following 7 days.
the third change is to the fee structure of the FWA protocol itself. the previous fee structure for protocol revenue was 20% to FWA stakers as ETH, 80% bought back as FWA with a 70/20/10 split of burned/purchasers/depositors. we've kept the 20% to FWA stakers and updated the 80% so the split is dynamic between purchasers and burned, with depositors no longer receiving a share. it will start at 50/50 and adjust daily: if purchases slow it will drift more to purchasers, and in periods of high activity it will drift more to burn.
we'll continue to make changes like this for the health of the protocol, although the long-term goal is to pass along as many decisions to FWA token holders as possible.
We've given the FWA homepage a much needed redesign.
The 0.1% bonus that went to the top NFT position has also been removed, distributing it across smaller depositor positions.
As of now, 85M $FWA has been burned from protocol activity with over 285k purchases across v1 + v2
We've done a huge rework on FundingWorks: a non-speculative patron model building long lasting partnerships between creators and supporters on Ethereum.
A thread on the platform:
Pools will be launching this Friday
Ahead of the launch, I’ve updated the FWA protocol fee split as follows:
- 56% -> Buy and burn FWA
- 16% -> Purchaser rewards
- 8% -> Depositor rewards
- 20% -> Stakers
Last night, over 1% of the FWA supply was burned as people rushed to purchase from the pool, with 2 Punks being bought for ~0.095Ξ each
At one point there were less than 50 NFTs in the pool, and already back up to 1,700!
All permissionless, fully onchain.
Fake World Assets
Your NFTs. Your token. Your pool.
- Fill it with your NFTs and earn all of the ETH from purchases.
- Launch an $FWA paired token, route pool fees into buying and burning it, and let users spend your token on NFT purchases.
- No ETH required.
Coming soon to Fake World Assets.
when life gives you lemons, etc.
we bought an nft from each collection and sent them to Quit's contract to allow users to swap out their NFTs easier. Half of the small swap fee buy-and-burns the Strategy token.
and I accidentally bought 2 apes, so I guess this is mine now
We’ve updated the site: treat the seven affected contracts, labeled “The 7,” as using fees to buy and burn NFTs rather than relist them.
As Quit noted, the bug lets holders swap NFTs. We bought one from each collection and plan to build a tool to swap yours for one in the pool.
A quick note on this because it's maybe interesting:
These 21 apes are not truly bricked forever. They can be swapped for other apes using the same mechanism run this morning.
But all of the listings are cleared - ApeSTR effectively thinks it owns 0 apes - so nothing can be purchased.
So to you purists saying this is a deflationary event - it kind of is?
There are net-new 21 apes that can never be purchased, but which 21 those are can change from day to day.
gm gm here we go again.
This morning somebody abused a bug in ApeStr to swap 21 apes for 21 ApeStr-owned apes.
This was a known exploit (see the SQUIGSTR exploit from ~1 year ago) but incentive to run it was never there.
The bug lies in buyTargetNFT: it forces a strategy contract to send arbitrary calldata to any target. Afterwards it checks only three things: its BAYC balance rose by exactly 1, it owns expectedId, and "cost" equals its ETH balance drop.
This was patched in later NFTStrategy releases, but affects the original 6 (PunkSTR not affected).
The attacker bought 2 BAYC to use as bait. Using a helper contract, they prep the strategy contract by selling an ape to it for 5 wei and immediately buying it back for 6 wei. That primes the contract's ethToTwap with 6 wei.
They then call buyTargetNFT and pass the calldata to transfer an ape from ApeSTR to the helper using safeTransferFrom. This in turn hands execution over to the helper (remember, safeTransferFrom is NOT safe), which transfer TWO apes back to ApeSTR to satisfy the balance check (1 out, 2 in leaves ApeSTR at +1). It also calls processTokenTwap, which converts the 6 wei, setting the cost of one of the newly deposited apes to 7 wei (6 * 120%). The helper contract buys it back in the same tx.
example flow:
- Attacker has BAYC #1 and #2. ApeSTR has BAYC #3.
- Attacker "sells" BAYC #1 to ApeSTR for 6 wei and sends BAYC #2 to it for free, but steals BAYC #3 in the process.
- ApeSTR relists BAYC #1 for 7 wei, which the attacker buys.
- Attacker now has BAYC #1 and BAYC #3, and ApeSTR has BAYC #2 (but doesn't even know it).
The attacker ran this for all 21 BAYC in the ApeSTR contract, resulting in them being able to claim packs for all of those BAYC. Total net proceeds: $14k.
This previously affected SQUIGSTR because of their shared contract - any art blocks NFT sent in would satisfy the balance check, allowing the attacker to drain the contract of squiggles in exchange for basically valueless art blocks NFTs.
It was known to be possible on ApeSTR as well, so I guess it was just a matter of time before we saw it happen.
The unfortunate consequence is that now, ApeSTR has 21 apes that it is completely unaware of, so they cannot be bought from the contract. And 210 attacker-owned mudwater packs were dumped into bids.
Looking further, it seems the exploit was fundamentally the same: a reentrancy attack allowing NFTs to be swapped that we patched in future releases, but it appears to be a worse outcome. In the process they seem to have re-bought the same NFT, clearing out the listing price.
I think this bricked the NFTs held by the Strategy since there is no longer a listing for them. I also think this can be executed on the other 6 strategies that had this bug.
This was only profitable on the APESTR contract because of the Mudwater pack claim, but there's nothing stopping someone from being unprofitable and malicious to brick the other 6 (or if there is a profitable claim in the future).
NFTs getting locked in the contract is a horrible outcome. I'm glad that this didn't happen a year ago when there was more volume on these 7 tokens, but it's heartbreaking that the issue ended up being even worse.
Let me know if you have any questions below and will do my best to answer.
I've disabled new Strategy launches for the foreseeable future.
I don't think launches every day with zero volume helps the ecosystem, and it's better to allow communities that want the tech to launch themselves and thrive.
We've refunded all 14 pending requests. More below.
I’m proud to announce that we’ve donated ownership of the PunkStrategy contract to the NODE Foundation.
I view the contracts we create at TokenWorks as art. NODE is already the home of the CryptoPunks IP, and I think they’re the right people to carry this idea forward. Being able to donate PunkStrategy to them means a lot to me.
With this transfer, TokenWorks’ share of trading fees will now go to NODE, giving them a new revenue stream to support artists, exhibitions, and more. We think this is the best home for the project.
PunkStrategy runs autonomously and is designed to keep running for as long as Ethereum does. At the time of writing, the contract holds 37 Punks, which remain governed by its rules. The owner can only do three things:
* Set the trading fee on the hook between 1% and 10%
* Set the relisting multiplier for newly purchased Punks between 1.1x and 10x
* Claim the owner’s share of trading fees.
We’ll continue tweeting about PunkStrategy’s buys and sells and supporting the project. Both TokenWorks and I personally remain significant holders of PNKSTR.
The Token Works