Hard-Coded Mainnet WETH Address Breaks All Non-Mainnet Deployments
The protocol's contracts hard-code the Ethereum mainnet WETH address as a compile-time constant, so on other chains the wrapped-ETH calls either revert or do nothing. This could strand funds in withdraw managers and strategies and break accounting, blocking redemptions and liquidations on those deployments.
0xShoonya Follow with boredpukar, talfao and 1 other
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/195
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
0xShoonya, boredpukar, talfao, vangrim
Summary
The protocol’s core contracts (strategies, routers, and withdraw-request managers) all reference a single compile-time constant:
WETH9 constant WETH = WETH9(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
This is the Ethereum-mainnet WETH9. When the same bytecode is deployed to chains like Arbitrum, Base, or any L2/sidechain whose wrapped-ETH token lives at a different address, every call to WETH.withdraw() or WETH.deposit{value:...}() will either revert or no-op.
Vulnerability Description
Throughout the codebase—e.g. in AbstractStakingStrategy, CurveConvexLib, EtherFiWithdrawRequestManager, and others—WETH is declared as a constant pointing at mainnet’s 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 address.
Ethereum, in the future we will consider Base or Arbitrum
On chains where that address has no code or contains an unrelated contract:
withdraw() reverts → funds are stranded inside withdraw-managers (EtherFi, Dinero, Origin, etc.) and strategies during exits.
deposit{value: …}() emits no ERC-20, so accounting under-flows on the very next balanceOf / health-factor check, blocking redemptions and liquidations protocol-wide.
Because the constant is declared at compile-time, recompiling once and re-using the same artefacts for multiple chains is enough to brick the deployment.
Impact
Medium - Protocol may not work on most of the supported blockchains.
Likelihood
Medium - The architecture explicitly targets future deployments on Arbitrum, Base, etc.
Severity
Medium
Recommendations
Make WETH an immutable constructor argument or pull it from AddressRegistry.
At deployment, assert address(WETH).code.length > 0.
Discussion
jeffywu
This will be fixed when we deploy to other chains.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The WETH token address is baked into the code as a compile-time constant for mainnet instead of being supplied per deployment.
Impact
On chains where the mainnet address has no code or an unrelated contract, withdrawals could revert and strand funds, and deposits could break accounting, blocking redemptions and liquidations; the team says it will be fixed when deploying to other chains.
What the attacker needed
Deployment to a non-mainnet chain; WETH at a different address there
The fix
The team acknowledged the issue but says it will be fixed when they deploy to other chains; the recommended approach is to pass WETH as a constructor argument or read it from a registry and check that code exists at the address.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Wrapped Ether (WETH) is a token version of Ether that smart contracts can hold and move. Its address is different on each blockchain, but this code always points at the Ethereum mainnet one. On another chain that address is empty or belongs to something else, so the deposit and withdraw calls fail and money can get stuck.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.