Changing the epoch duration will completely break the vault and the slashers
The vault and slasher contracts store a fixed epoch duration that cannot be updated, while the epoch manager can change its own epoch duration. If the epoch manager's duration is changed, the vault's staking and slashing mechanisms break because they rely on the old duration, causing slashing to fail or become impossible.
0x73696d616f Follow with zark
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-symbiotic-relay-judging/issues/410
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
0x73696d616f, zark
Summary
The vault and slashers in scope of the protocol in OpNetVaultAutoDeploy are BASE_VAULT_VERSION and TOKENIZED_VAULT_VERSION, SlasherType.INSTANT and SlasherType.VETO.
The issue is that the epoch duration can not be updated in these contracts, they always use the same value. As a result, whenever it is changed in the epoch manager via EpochManager::setEpochDuration(), it will completely ruin the vault's staking and slashing mechanism, as they rely on the epoch duration. For example, the instant slasher requires the slashing to be within 1 epoch duration, but if the epoch duration is now bigger/smaller, slashing will fail for a significant period of time. Slashing also has several checks which don't allow slashing whenever the operator, token or vault is not registered in that epoch, which can make slashing impossible via slashVault() in case of epoch duration change.
Additionally, the slashing window must be bigger than the epoch duration, but the slasher's and vault's epoch duration can't be changed, so this will also not work properly. The same happens for the veto duration of the veto slasher.
Vault::onSlash() requires the epoch to be no older than currentEpoch_ - 1, but a different duration means this will fail. For example, if the duration is halved, calling at duration / 2 + 1 after the current epoch will revert as this is already 2 epochs in the past.
Root Cause
In EpochManager:115, setting a new epoch duration will always break the vault and their slasher.
Internal Pre-conditions
None
External Pre-conditions
None
Attack Path
EpochManager::setEpochDuration()is called.
Impact
Epoch duration is out of sync between the vaults, slashers and the epoch manager, so slashing will fail or be impossible.
PoC
No response
Mitigation
Non trivial.
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
Likely the vault and slasher contracts store a fixed epoch duration that is not updated when the epoch manager's duration changes.
Impact
Epoch duration is out of sync between the vaults, slashers and the epoch manager, so slashing will fail or be impossible.
What the attacker needed
Epoch duration is changed in the epoch manager
How it was found
- Call EpochManager::setEpochDuration() to change the epoch duration.
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.
A blockchain protocol has an 'epoch' which is a period of time used for staking and slashing (penalising bad behaviour). The vault and slasher contracts hard-code the length of an epoch, but the central epoch manager can change it. If the manager changes the epoch length, the vault and slasher still use the old length, so their timing checks fail and slashing stops working.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.