removed observers are still able to vote
The VoteTSS function only checks for a node account instead of verifying that the signer is a non-tombstoned observer. An observer removed from the observer set (e.g., for insufficient stake) can still vote because their node account cannot be removed via UpdateObserver.
0xAlix2 Follow with BrothersInCode
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-04-zetachain-cross-chain-judging/issues/144
Found by
0xAlix2, BrothersInCode
Description
Among the various voting entry points, VoteTSS stands out by replacing the IsNonTombstonedObserver check and instead relying on the following validation:
// Verifies that the signer is authorized by ensuring they have a node account.
_, found := k.GetNodeAccount(ctx, msg.Creator)
if !found {
return nil, errorsmod.Wrapf(
sdkerrors.ErrorInvalidSigner,
"%s, signer %s does not have a node account set", voteTSSid, msg.Creator)
}
GetNodeAccount simply checks for the nodeAccount to be in store:
func (k Keeper) GetNodeAccount(ctx sdk.Context, index string) (val types.NodeAccount, found bool) {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NodeAccountKey))
b := store.Get(types.KeyPrefix(index))
if b == nil {
return val, false
}
k.cdc.MustUnmarshal(b, &val)
return val, true
}
This ensures that only observers with valid node accounts can participate.
Currently, the only way a node account can be removed is through the updateObserver function which calls removeNodeAccount:
func (k msgServer) UpdateObserver(
goCtx context.Context,
msg *types.MsgUpdateObserver,
) (*types.MsgUpdateObserverResponse, error) {
// ...
// Remove the old node account to maintain consistency between observers and node accounts
k.RemoveNodeAccount(ctx, msg.OldObserverAddress)
// ...
}
It's important to note that UpdateObserver is invoked to replace an old observer when they are tombstoned. Therefore, the presence of the node account check inside VoteTSS effectively serves as an implicit tombstone check—since tombstoned validators have their node accounts removed.
There is a flaw to this however.
When an observer is removed from the observer set, UpdateObserver will always revert due to the following check:
// We do not use IsNonTombstonedObserver here because we want to allow tombstoned observers to be updated
if !k.IsAddressPartOfObserverSet(ctx, msg.OldObserverAddress) {
return nil, errorsmod.Wrapf(
types.ErrNotObserver,
"Observer address is not authorized : %s", msg.OldObserverAddress)
}
This prevents the updateObserver function from executing, which in turn means the observer’s node account cannot be removed.
Observers can be removed from the observer set through various hooks—for example, in CheckAndCleanObserver, in case the observer does not meet the minimum required threshold it will be removed from the observer set:
tokens := validator.TokensFromShares(delegation.Shares)
if tokens.LT(minDelegation) {
k.RemoveObserverFromSet(ctx, accAddress)
}
If this logic is triggered for an observer with a valid node account, they are removed from the observer set. However, since the VoteTSS function only checks for the presence of a node account—and that account can no longer be removed via updateObserver—the validator remains able to vote, even though they are no longer an authorized observer.
Note that all other voting functions such as VoteBlame perform the IsNonTombstonedObserver check which correctly verifies whether the observer is still part of the observer set and therefore would have handled this case appropriately.
func (k Keeper) IsNonTombstonedObserver(ctx sdk.Context, address string) bool {
isPresentInMapper := k.IsAddressPartOfObserverSet(ctx, address)
if !isPresentInMapper {
return false
}
//..code
This contrasts with VoteTSS which does not perform this check at all.
Impact
Ultimately, if an observer is removed from the observer set they can perform VoteTSS.
POC
- Bob, an active observer, currently holds a valid node account.
- However, Bob fails to meet the minimum staking requirement and is subsequently removed from the observer set.
- Despite this, Bob’s node account remains intact, allowing him to continue submitting
VoteTSSvotes—even though he is no longer a valid observer.
Recommendation
Ensure that removed/tombstoned validators are unable to perform votes.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/zeta-chain/node/pull/3917
gjaldon
The issue has been fixed by replacing all instances of IsNonTombstonedObserver() with CheckObserverCanVote(), which also checks if a validator is jailed.
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
VoteTSS uses a node account existence check instead of the proper IsNonTombstonedObserver check, and removed observers cannot have their node accounts deleted because UpdateObserver reverts for non-observers.
What the attacker needed
Observer removed from set; node account still present
How it was found
- Bob is an active observer with a valid node account.
- Bob fails to meet the minimum staking requirement and is removed from the observer set.
- Bob's node account remains intact.
- Bob can still submit VoteTSS votes despite no longer being an observer.
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.
In a blockchain system, observers vote on certain actions. Normally, when an observer is removed, they should lose voting rights. But here, a removed observer could still vote because the check only looked at whether they had a node account, which wasn't deleted.
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.