Skip to content

Sherlock

Andromeda – Validator Staking ADO and Vesting ADO

Every publicly disclosed report for Andromeda – Validator Staking ADO and Vesting ADO and what kind of bugs they were.

disclosed reports
16
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Andromeda – Validator Staking ADO and Vesting ADO on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Andromeda – Validator Staking ADO and Vesting ADO chose to make public.

Business logic

Calculating tax amount does not include taxes in `WasmMsg::Execute` messages

The function `get_tax_amount()` only counts tax amounts in `BankMsg::Send` messages, ignoring those in `WasmMsg::Execute` messages. This can cause payment transfers to fail or allow payers to skip taxes when fee recipients have a custom message set.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

Attacker can freeze users first rewards

The staking contract's withdrawal address is not set by default, so rewards can be sent to the contract itself instead of the owner. An attacker can front-run the owner's first claim by staking a small amount on their behalf, causing all accrued rewards to become stuck in the contract.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

the DEFAULTVALIDATOR cannot be changed

The validator-staking contract lacks a function to change the default staking validator, contradicting the documentation that says it can be altered. An attacker cannot directly exploit this, but it means the documented functionality is missing, which the protocol team later fixed.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

Valid VFS paths with usernames can always fail validation

VFS path validation fails for usernames that are also valid addresses, causing valid paths to be rejected or resolved to the wrong address. This can break functionality and lead to loss of funds when funds are sent to an incorrect address.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

Lockup of vestings or completion time can be bypassed due to missing check for staked tokens

The vesting contract did not track how many tokens from each vesting batch were staked, so a recipient could claim tokens from a matured vesting while those tokens were staked, effectively pulling tokens from another vesting that was still locked. This allowed bypassing the lockup period and accessing locked tokens prematurely.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

Batch creation will break if vestings are opened to recipients

The vesting contract's batch creation function calls a delegation function that is restricted to the owner, but a planned update would restrict delegation to the recipient, causing a conflict where batch creation with direct delegation always reverts. An attacker could not exploit this; it is a functional bug that prevents legitimate use.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
DoS

Changes of the `UnbondingTime` are not accounted for

The contract's withdrawal function assumes unstaking entries are ordered by completion time, but if governance reduces the chain's UnbondingTime, newer entries can have earlier completion times and become stuck behind older ones. This can lock tokens for up to the original unbonding period.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

if Slash Validator occurs, UNSTAKING_QUEUE's unstake amount will not be accurate

The UNSTAKING_QUEUE records the initial_balance of an unbonding delegation, but if a validator is slashed, the actual balance received is lower. This causes execute_withdraw_fund() to fail due to insufficient balance, blocking the queue.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Audit finding

execute_claim() possible loss of accuracy or even inability to retrieve funds

The claim_batch function in a vesting contract calculates the amount to send by first dividing and then multiplying, which can cause precision loss and even result in zero amount being claimable. An attacker or user could be unable to retrieve funds due to this rounding error.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

is_permissioned() may underflow

A permission check function decrements a limited-use permission even when the action no longer requires permission, causing an underflow if the uses are already zero. An attacker with a limited permission could be blocked from executing an action after the administrator changes the action's permission requirement.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Business logic

If WithdrawAddrEnabled = false, execute_claim() will fail

The contract's claim function always sends a message to set the withdraw address before claiming rewards. If the chain parameter WithdrawAddrEnabled is false, that message fails and the whole claim transaction reverts, so rewards cannot be claimed.

Andromeda – Validator Staking ADO and Vesting ADO

Medium
Access control

verify_origin() previous_sender may be forged

The AMP packet verification in Andromeda's ADO contracts did not check that the previous_sender field matched the actual sender when a user submitted an AMPReceive message directly. An attacker could forge previous_sender to impersonate a privileged address, potentially bypassing permission checks such as the minter restriction in the CW721 contract.

Andromeda – Validator Staking ADO and Vesting ADO

High