Hunt prep
Before you test Chakra
What 26 disclosed reports say about Chakra: 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 | 17 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 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.
-
SettlementSignatureVerifier is missing check for duplicate validator signatures
The signature verification should track which validators have already signed and only count each validator once, as shown in the recommended mitigation.
Disclosed
-
Malicious actors can manipulate the cross_chain_callback callback
The from_chain value should be included in the signed message hash so a signature cannot be reused with a different chain.
Disclosed
-
In settlement.cairo::receive_cross_chain_msg - the message will always be marked with Status::SUCCESS
The handler should return false when something goes wrong, following the Solidity implementation, so the settlement contract can mark the message as failed.
Disclosed
-
settlement.cairo doesn’t process callback correctly leading to CrossChainMsgStatus marked as SUCCESS even if it failed on destination chain
The status should be set to the cross_chain_msg_status parameter when the handler call succeeds, matching the Solidity implementation.
Disclosed
-
Incorrect Decimals Setting for ckrBTC Token May Lead to User Confusion and Inaccurate Transaction Amounts
The decimals should be set to 8 for the ckrBTC token.
Disclosed
-
Forcing Starknet handlers to be whitelisted on the same chain allows exploit of BurnUnlock mode to drain handler funds
The check that forces handlers to be self-whitelisted should be removed.
Disclosed
-
Anyone can manipulate user nonce ( nonce_manager ) in settlement contract
The nonce should be tracked per handler and per user, for example by using a nested mapping keyed by from_handler and from_address, so that only the handler can increment the user's nonce.
Disclosed
-
Handler’s receive_cross_chain_callback() will always set the tx_status to SETTLED on source chain & burn the tokens (MintBurn Mode) even when the msg fails on destination
The function should check cross_chain_msg_status and only set SETTLED and burn tokens when the status is SUCCESS; otherwise set FAILED.
Disclosed
-
Does not check if to_chain and to_handler is whitelisted in cross_chain_erc20_settlement
The settlement function should check that the destination chain and handler are whitelisted before locking or burning tokens.
Disclosed
-
SettlementSignatureVerifier’s required_validators is not updated, resulting in a low or high number of signatures being required
The set_required_validators_num function in BaseSettlement should also call SettlementSignatureVerifier.set_required_validators_num to keep the required number in sync.
Disclosed
-
Excessive Authority Granted to Managers in the ckr_btc.cairo Contract Presents Significant Management Risks
The contract should be modified so that only the owner can add or remove managers and operators, following Solidity best practices.
Disclosed
-
In settlement.cairo::receive_cross_chain_msg - the payload_type can be passed by the user, confusing offchain systems
The payload_type should be included in the message hash generation so that its value cannot be altered.
Disclosed
-
Inconsistent Handler Validation Behavior in Cairo ERC20Handler’s Cross-Chain Callback
The Cairo implementation should be updated to check handler validity without using assert, returning false instead.
Disclosed
-
ChakraSettlement.receive_cross_chain_msg and ChakraSettlement.receive_cross_chain_callback functions do not ensure that receiving ChakraSettlement contract’s contract_chain_name must match to_chain corresponding to respective txid input though they should
The contract should be updated to check that the receiving ChakraSettlement contract's contract_chain_name matches the to_chain associated with the txid input and revert if not matched.
Disclosed
-
The receive_cross_chain_msg function has potential replay attack risks
The handler should store and verify the status of cross-chain messages to prevent replay, and the settlement address should be made unchangeable.
Disclosed