Hunt prep
Before you test Stacks
What 32 disclosed reports say about Stacks: 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 | 15 | 0 | – | – | $0 |
| DoS lesson | 13 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 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.
-
A malicious coordinator can run multiple DKG coordination in parallel and manipulate their order to break the signers network
The signers should validate the DKG round identifier against the coordinator's public key and the Bitcoin chain tip, which would prevent concurrent coordination.
Disclosed
-
Signer key rotation is not possible due to deadlock between submitting key rotation to Stacks and retrieving it
Signers should store a temporary proposed signer set that is retrieved when DKG is triggered, and this should be done manually by each signer to ensure quorum agreement, without allowing the coordinator to specify the new set.
Disclosed
-
Lack of fee_rate/last_fees validation in handle_bitcoin_pre_sign_request ebables rogue signer to cause financial loss to depositors
Signers should independently obtain the fee rate and last_fees and reject a pre-sign request whose values deviate unreasonably from their own, for example beyond a 20% margin.
Disclosed
-
Signer can censor transactions and halt the network by providing an invalid nonce or too many nonces
The coordinator should check that the number of provided nonces matches the number of valid unique key IDs, and dismiss the packet and mark the signer as malicious if it does not.
Disclosed
-
A single signer can abort every attempted signing round by providing an invalid packet once the coordinator requests signature shares
The error handling in `wsts::process_message` should not return a success-like tuple on error; instead, the coordinator should ignore invalid packets and continue the signing round.
Disclosed
-
The coordinator can set a higher BTC tx fee than the current network to make users to pay more fees to the BTC miner
Signers should validate the coordinator's fee rate and reject values much higher than the current mainnet rate.
Disclosed
-
Malicious Signers can initiate repeated contract calls to cause the multi-sign wallet to lose tx fee
The signer should check that a coordinator's call request has not already been executed before signing it.
Disclosed
-
Attackers can disrupt the tag order of gossip messages to bypass signature verification
The signature field should be placed first in the message instead of allowing the message to customise the signature field position.
Disclosed
-
Governance calling sbtc-registry.update-protocol-contract may cause Stacks' events to be ignored by the signer
The event parser should recognise and handle the update-protocol-contract topic, or the handler should skip only the unknown event rather than the whole block.
Disclosed
-
A single signer can continuously prevent signatures from being finalized, halting network operations
The nonce and signature share gathering should be done in parallel or independently, succeeding once a threshold of signers have provided both a valid nonce and a signature share.
Disclosed
-
Coordinator can be crashed by signers on DKG
All direct array accesses in the wsts library should be replaced with checked lookups such as .get and errors handled accordingly.
Disclosed
-
A malicious coordinator calling Emily::update_deposits can make the entire Signers network inoperable
Emily should record each coordinator's opinion on deposit status and only apply a change once a threshold of opinions agrees, following the same multi-signature principle as the signers.
Disclosed
-
Signers can crash other signers by sending an invalid DkgPrivateShares due to missing check before passing the payload to SignerStateMachine::process
The validity of received wsts payloads should be verified either in the signer itself or in the wsts library.
Disclosed
-
Missing length check when parsing SignatureShareRequest in the signers allows the coordinator to halt other signers, shutting down the network
The signer should reject signing requests with too many nonce_responses, for example by limiting the count to the number of signers in the set.
Disclosed
-
Emily.create_deposit can overwrite any deposit to the Pending state
The create_deposit handler should check if a deposit with the same bitcoin_txid and bitcoin_tx_output_index already exists and reject the request if it does.
Disclosed