friesDAO Hack

TOTAL LOST $2.3M
Medium Access Control

Summarize with AI

Affected Chain 2022 Incident surface
Recovered - No recovery reported
All-Time Rank #603 By amount stolen
Auditors 1 Prior security audit

Incident Overview

On October 27th, an attacker exploited the friesDAO contracts, taking control of the deployer address through a profanity attack vector and drained the treasury of its USDC, resulting in a loss of 2,138,705.403949 USDC, and drained the FRIES tokens in the staking contract and sold them through Uniswap, extracting 120.128930112550592565 ETH ($189,954.761991 at the time).

The friesDAO contracts were deployed by one address, which had not transferred ownership of the contracts to a different address such as multisig after deployment. The attacker was able to exploit the contracts by brute-forcing the private key using profanity's vulnerabilities, which reduced the possibilities of private keys due to flaws in generation, and gained control of the deployer contract. The first part of the attack drained all of the USDC from the treasury by swapping it to a bit of FRIES tokens, setting the manual, fixed refund rate variable to a high number, changing the merkle root whitelist of the NFT, and refunded the small bit of purchased FRIES token for the entire treasury’s USDC.

The second part took all of the FRIES out of the staking pool, then sold them through Uniswap to extract USDC from the liquidity pool.

Attacker addresses:

https://etherscan.io/address/0x6b88d0f4…e2d49b

Incident Report

Protocol / Project friesDAO
Date of Incident
Attack Technique Access Control
Classification Other

Protocol Information

Protocol Type Yield
Affected Token FRIES
Official Website fries.fund/
Protocol Twitter/X @friesdao?lang=en
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
Ethereum Ecosystem

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Operational-security tradecraft (phishing, malware, leaked seed phrases, or insider access) to obtain treasury signing authority
Capital Required Minimal capital - only enough to cover gas while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised wallets / multisig signers, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of friesDAO's high-value treasury accounts and the authority / multisig structure controlling them
Execution Speed Speed to drain the compromised accounts before the team detects the breach and revokes signing authority or freezes the assets
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely — with a thorough Access Control audit checklist and test coverage
Audited by Audit Report 1 — still lost $2.3M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to friesDAO, these are the critical security checks that could have prevented this incident (October 2022).

  • Verify all logic paths related to Access Control are guarded by proper access controls and input validation - see the Access Control Attacks attack class for patterns
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Security Audit History

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Access Control Attacks examples →

Sources & References

Learn to Prevent the Next friesDAO

The friesDAO hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial