Skip to content

Code4rena

SKALE contest

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

disclosed reports
13
most reported class
Access control
bug classes found
3
first disclosure
2022
Find SKALE contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what SKALE contest chose to make public.

Smart contracts

Reentrancy in MessageProxyForSchain leads to replay attacks

The postIncomingMessages function calls an attacker-controlled contract before updating the incoming message counter, allowing re-entrancy. An attacker could replay the same cross-chain messages to receive funds multiple times.

SKALE contest

High
Business logic

When transferring tokens native on SKALE to Ethereum with TokenManagerERC20.exitToMainERC20() , the tokens on the schain will be frozen on TokenManagerERC20 , but they will not receive tokens on Ethereum

The bridge contract on a SKALE chain allowed a user to send a natively minted token to Ethereum mainnet, but the Ethereum deposit box only understands a different message type and rejects it. The user's tokens are burned or locked on the SKALE side while no tokens arrive on Ethereum, so the funds are lost.

SKALE contest

Medium
Smart contracts

TokenManagerERC20.sol uses transferFrom() instead of safeTransferFrom()

The TokenManagerERC20 contract uses transferFrom() instead of safeTransferFrom(), so tokens that do not return a boolean (non-standard ERC20) will cause transactions to revert. This makes such tokens unusable in the protocol, but no funds are lost.

SKALE contest

Medium
Access control

NFT owner can change token URI

The ERC721OnChain contract allows the owner of an NFT to change its token URI, which is normally set by the contract owner. An attacker who owns an NFT could spoof another NFT's data by changing the token URI to point to that other NFT's data.

SKALE contest

Medium
Business logic

Loss of pending messages (if any) in case removeConnectedChain is called

The removeConnectedChain function deletes a chain's configuration without checking for pending messages, so any unprocessed messages (including token transfers) may become stuck or lost. An attacker with admin privileges could use this to deny operations.

SKALE contest

Medium
Business logic

Gas pricing can be used to extort funds from users of SChain owner

The refund calculation in CommunityPool.refundGasByUser uses tx.gasprice, which the node submitting the transaction controls, allowing a malicious node to set an excessively high gas price and drain the user's or SChain owner's balance. The user may also be locked out of further exits if their balance becomes insufficient.

SKALE contest

High
Smart contracts

Transactions can be replayed when a connectedChain is removed and then reconnected

When a connected chain is removed and later reconnected, the message counters are reset to zero, allowing previously processed messages to be replayed with their old signatures. This could also cause inbound and outbound messages to fail because the counter is out of sync with the remote chain.

SKALE contest

Medium
Access control

Schain owners can rug pull users’ funds

The deposit box contracts allow a chain owner to call getFunds after a chain is killed, transferring all deposited funds to any receiver. This gives the owner a rug-pull vector, though it requires cooperation from the IMA mainnet admin.

SKALE contest

Medium
Business logic

Not compatible with Rebasing/Deflationary/Inflationary tokens

The DepositBoxERC20 contract does not account for tokens whose balances change during transfers or over time, such as rebasing, deflationary, or inflationary tokens. An attacker could exploit this by depositing such a token and causing the contract's accounting to become inconsistent, potentially leading to loss of funds or incorrect bridging.

SKALE contest

Medium
Access control

BURNER_ROLE can burn any amount of EthErc20 from an arbitrary address

The EthErc20 contract's forceBurn function lets any address with the BURNER_ROLE burn tokens from any account without that account's consent. An attacker holding that role could destroy arbitrary amounts of other users' tokens.

SKALE contest

Medium