Attacker will manipulate voting power calculations as `getOperatorVotingPower()` and `getOperatorVotingPowerAt()` functions lack vault validation
The voting power calculation functions do not verify that the provided vault address is registered, only that its collateral token is registered. An attacker could supply an unregistered vault to gain unauthorized voting influence.
0xapple Follow with 0xmaverick, Drynooo and 7 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-symbiotic-relay-judging/issues/196
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
0xapple, 0xmaverick, Drynooo, Jeffy, PASCAL, Ziusz, katz, patitonar, roshark, zark
Summary
The missing vault validation in VotingPowerProvider::getOperatorVotingPower() and VotingPowerProvider::getOperatorVotingPowerAt() functions that receives the vault external parameter will cause incorrect voting power calculations as an attacker can provide unregistered or invalid vault addresses to gain unauthorized voting influence
Root Cause
In VotingPowerProviderLogic::getOperatorVotingPower(address operator, address vault, bytes memory extraData) and VotingPowerProviderLogic::getOperatorVotingPowerAt(address operator, address vault, bytes memory extraData, uint48 timestamp, bytes memory hints) the vault parameter is not validated to be a registered vault before processing voting power calculations.
The functions only validate that the vault's collateral token is registered via isTokenRegistered(IVault(vault).collateral()), but they do not verify that the vault itself is properly registered in the system.
A vault can be unregistered by:
- SharedVaults::unregisterSharedVault()
- OperatorVaults::unregisterOperatorVault()
Internal Pre-conditions
A vault with valid collateral token exists but is not registered in the VotingPowerProvider contract, OR the vault was registered but unregistered later.
External Pre-conditions
N/A
Attack Path
- Attacker identifies an unregistered vault that has a registered collateral token
- Attacker calls some contract that calls
VotingPowerProvider::getOperatorVotingPower()with the unregistered vault address - Function calculates voting power using the retrieved stake and returns it as valid voting power
- Attacker uses this voting power, gaining influence they should not have
Impact
The protocol using VotingPowerProvider suffers incorrect voting power calculations as attackers gain unauthorized voting influence through unregistered vaults.
PoC
No response
Mitigation
Add vault validation to both getOperatorVotingPower() and getOperatorVotingPowerAt() functions by checking if the vault is registered before processing voting power calculations:
// Add vault validation
if (!isSharedVaultRegistered(vault) && !isOperatorVaultRegistered(vault)) {
return 0;
}
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 functions only check that the vault's collateral token is registered, but omit a check that the vault itself is registered.
Impact
The protocol using `VotingPowerProvider` suffers incorrect voting power calculations as attackers gain unauthorized voting influence through unregistered vaults.
What the attacker needed
An unregistered vault with a registered collateral token…
The fix
Add vault validation to both functions by checking if the vault is registered before processing voting power calculations.
How it was found
- Attacker identifies an unregistered vault that has a registered collateral token
- Attacker calls some contract that calls `VotingPowerProvider::getOperatorVotingPower()` with the unregistered vault address
- Function calculates voting power using the retrieved stake and returns it as valid voting power
- Attacker uses this voting power, gaining influence they should not have
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.
These functions calculate how much voting power an operator has, based on a vault address they provide. They check that the vault's collateral token is registered, but not that the vault itself is registered. So someone could use a vault that was never approved, or was removed, to get voting power they should not have.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.