Hunt prep
Before you test Andromeda – Validator Staking ADO and Vesting ADO
What 16 disclosed reports say about Andromeda – Validator Staking ADO and Vesting ADO: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 11 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Calculating tax amount does not include taxes in `WasmMsg::Execute` messages
The function `get_tax_amount()` should be modified to also count taxes in `WasmMsg::Execute` messages.
Disclosed
-
when a validator is kicked out of the bonded validator set ,unstake funds will remain in the contract
The contract should be updated to register automatically unbonded funds as withdrawable, for example by calling add_withdrawable_token during staking.
Disclosed
-
Attacker can freeze users first rewards
The withdrawal address should be set during instantiation and updated on each stake, unstake, and withdraw call.
Disclosed
-
the DEFAULTVALIDATOR cannot be changed
The issue was fixed by adding an owner-only function to update the default validator.
Disclosed
-
Valid VFS paths with usernames can always fail validation
The code should first check if the username exists in storage and load its address; if not, then treat it as an address and validate it.
Disclosed
-
Lockup of vestings or completion time can be bypassed due to missing check for staked tokens
The protocol team fixed this issue by removing the stake logic in a pull request.
Disclosed
-
Batch creation will break if vestings are opened to recipients
The delegation function should be callable by either the owner or the recipient, or the delegation parameter should be removed from batch creation; the text notes the issue was fixed by removing the delegation parameter.
Disclosed
-
Changes of the `UnbondingTime` are not accounted for
The withdrawal loop should skip expired entries that are not at the front instead of breaking, and the protocol team fixed this issue in a pull request.
Disclosed
-
if Slash Validator occurs, UNSTAKING_QUEUE's unstake amount will not be accurate
The protocol team fixed this issue by removing the quantity calculation in execute_withdraw_fund() and directly withdrawing all the balance.
Disclosed
-
execute_claim() possible loss of accuracy or even inability to retrieve funds
The issue was fixed by modifying get_amount() to return Decimal and adding a check to prevent zero amounts.
Disclosed
-
is_permissioned() It doesn't make sense to have permissions by default after Blacklisted expires
The issue was fixed by changing the return value for an expired blacklist to `!strict`.
Disclosed
-
is_permissioned() may underflow
The issue was fixed by only consuming a use when the action is permissioned.
Disclosed
-
If WithdrawAddrEnabled = false, execute_claim() will fail
The protocol team fixed this by removing the SetWithdrawAddress call and instead withdrawing the contract's balance after triggering the reward.
Disclosed
-
verify_origin() previous_sender may be forged
The protocol team fixed this issue by requiring that info.sender equals both origin and previous_sender when the sender is a user.
Disclosed