Skip to content

Code4rena

Chakra

Every publicly disclosed report for Chakra and what kind of bugs they were.

disclosed reports
26
most reported class
Business logic
bug classes found
4
first disclosure
2025
Find Chakra on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Chakra chose to make public.

Smart contracts

SettlementSignatureVerifier is missing check for duplicate validator signatures

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.

Chakra

High
Smart contracts

Malicious actors can manipulate the cross_chain_callback callback

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.

Chakra

High
Business logic

settlement.cairo doesn’t process callback correctly leading to CrossChainMsgStatus marked as SUCCESS even if it failed on destination chain

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.

Chakra

High
Access control

Anyone can manipulate user nonce ( nonce_manager ) in settlement contract

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.

Chakra

High
Smart contracts

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 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.

Chakra

High
Business logic

In settlement.cairo::receive_cross_chain_msg - the payload_type can be passed by the user, confusing offchain systems

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.

Chakra

High
Business logic

Inconsistent Handler Validation Behavior in Cairo ERC20Handler’s Cross-Chain Callback

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.

Chakra

High
Access control

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 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.

Chakra

High
Race condition

The receive_cross_chain_msg function has potential replay attack risks

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.

Chakra

Medium
Business logic

The LockMint and BurnUnlock modes cannot be used

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.

Chakra

High
Business logic

Wrong usage of transaction originator address instead of caller address

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.

Chakra

Medium
Business logic

In Starknet, already processed messages can be re-submitted and by anyone

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.

Chakra

High
Business logic

A cross-chain message can be initiated with invalid parameters

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.

Chakra

Medium