The signature verification functions in both Solidity and Cairo settlement contracts do not check for duplicate validator signatures, allowing a single validator to meet the required threshold by repeating their signature. This lets a malicious validator drain the entire balance of a handler by submitting a forged cross-chain message.
The signature check on the cross-chain callback did not cover the from_chain field, so an attacker could front-run the legitimate callback with a wrong from_chain value that still passed signature verification. The handler then rejected the call and the transaction status was set to Failed, blocking the real callback from ever succeeding.
The settlement contract marks every cross-chain message as successful because the handler's receive function always returns true. An attacker could send a corrupted message that still gets recorded as successful, breaking the protocol's status tracking invariant.
The settlement contract on the source chain marks a cross-chain message as SUCCESS whenever the handler callback returns true, ignoring the actual status passed in the callback. An attacker could cause a failed cross-chain message to be recorded as successful, misleading users and potentially enabling double-spending or incorrect state.
The ckrBTC token on Starknet uses 18 decimals instead of the expected 8 for a Bitcoin-pegged asset. This could confuse users about amounts and cause tools relying on 8 decimals to malfunction.
The Starknet handler contract requires that both the source and destination handlers be whitelisted, forcing the owner to whitelist the handler itself. An attacker can send cross-chain messages from Starknet to Starknet, causing the handler to unlock tokens to the attacker's address repeatedly, draining the handler's funds.
The settlement contract's nonce_manager mapping can be incremented by anyone because the send_cross_chain_msg function is external and lacks access control. An attacker can call it with another user's address as from_address, causing the settlement nonce to diverge from the handler nonce and potentially confusing the system.
The Cairo implementation of receive_cross_chain_callback ignores the cross_chain_msg_status parameter, always setting the transaction status to SETTLED and burning tokens in MintBurn mode even when the message fails on the destination chain. This can cause incorrect state and token loss.
The cross-chain settlement function does not check that the destination chain and handler are whitelisted, so a user can send tokens to an invalid handler. The transaction then fails on the destination chain and the failure callback is ignored, leaving the funds stuck.
The BaseSettlement contract's set_required_validators_num function does not update the required_validators in the SettlementSignatureVerifier contract. This means the number of required validator signatures for settlement verification remains unchanged, potentially requiring fewer or more signatures than intended.
Managers in the ckr_btc.cairo contract have excessive authority, including the ability to add new managers and assign operator roles. This could allow a single manager to expand control and potentially enable unauthorised token minting or burning.
The receive_cross_chain_msg function in a Cairo settlement contract accepts a payload_type parameter that is not included in the signed message hash, so an attacker can call the function with a different payload_type while still passing signature verification. This causes off-chain systems that listen to the emitted event to receive incorrect information about the payload type.
The Cairo ERC20Handler's cross-chain callback uses an assert to validate handlers, causing a revert if the handler is invalid or removed from the whitelist. This leaves transactions stuck in Pending, unlike the Solidity version which returns false and allows the settlement contract to mark the transaction as Failed.
The ChakraSettlement contract's receive functions do not verify that the receiving chain matches the intended destination chain encoded in the transaction. An attacker could replay a signed cross-chain message on a different chain, causing tokens to be minted or burned incorrectly.
The receive_cross_chain_msg function does not check whether a cross-chain message has already been executed, relying entirely on the settlement contract. If the settlement contract address is updated without changing validators, previously executed messages can be replayed, potentially causing financial discrepancies.
The settlement handler's receive function uses the wrong token operation for the LockMint and BurnUnlock modes, so these modes cannot work correctly. An attacker could not directly exploit this, but the protocol's cross-chain transfers would fail or behave incorrectly for those configurations.
The ChakraSettlementHandler contract incorrectly uses its own address instead of the token address when recording a cross-chain transaction and emitting the CrossChainLocked event. This could cause validators to process incorrect token information, potentially leading to failed or misdirected settlements.
The Starknet handler emitted the transaction originator's address instead of the actual caller's address in cross-chain message events. This could mislead third parties reading the events, but the judge deemed it an incorrect implementation rather than a material vulnerability.
The receive_cross_chain_msg function in the Starknet settlement handler did not check whether a cross-chain message had already been processed, so anyone could resubmit a previously valid message with its original signatures and trigger repeated token mints. This allowed an attacker to inflate the balance of the recipient address by the message amount each time.
The Starknet handler allows bridging tokens from Starknet to Starknet, which causes the same tokens to be locked and then minted again, inflating the total supply of ckrBTC. An attacker could exploit this to increase the supply of ckrBTC without a corresponding increase in BTC backing.
The settlement contract's receive_cross_chain_msg function stores the settlement contract's own address in the to_handler field of the ReceivedCrossChainTx struct instead of the intended handler address. This means the recorded cross-chain transaction data is wrong, though the text does not show a concrete exploit beyond the incorrect record.
The destination handler for cross-chain ERC20 transfers does not verify that the decoded operation is a transfer, so any other ERC20 method (such as approve) is processed as a transfer, potentially minting or unlocking tokens without a corresponding lock or burn on the source chain.
The cross-chain ERC20 settlement contracts lack a refund mechanism when a settlement fails, for example if the source handler is removed from the destination whitelist after the message is sent. The caller loses the tokens they transferred to the source handler or burned on the source chain.
The cross-chain settlement function stored the contract's own address as the sender in the transaction record, while the emitted event used the actual caller's address. This inconsistency could cause off-chain validators to process transactions incorrectly, potentially leading to stuck funds.
The Cairo implementation of the cross-chain ERC20 settlement function lacks validation for the amount, recipient, handler, and token addresses, unlike its Solidity counterpart. An attacker could initiate settlements with zero or invalid parameters, wasting validator resources or causing transfers to revert.
The BurnUnlock mode burns tokens on the source chain before confirming a successful unlock on the destination chain. If the destination transaction fails, the user's tokens are lost on both chains.
CH
Chakra
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.