Skip to content

Code4rena

Cudos contest

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

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

Disclosed reports

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

Access control

Admin drains all ERC based user funds using withdrawERC20()

The Gravity contract includes a withdrawERC20 function that lets an admin transfer the entire balance of any ERC20 token held by the contract to their own address. An attacker with the admin role could drain all bridged tokens, leaving users' funds on the Cosmos chain without an ERC20 representation.

Cudos contest

Medium
Business logic

Non-Cudos Erc20 funds sent through sendToCosmos() will be lost.

The sendToCosmos function accepts any ERC20 token without checking if it is supported, so users who send non-Cudos tokens lose their funds because the contract does not credit them on the destination chain. The admin can later withdraw these tokens, but the user has no way to recover them.

Cudos contest

Medium
DoS

Calls inside loops that may address DoS

The contract makes external calls inside loops, which could cause a denial of service if one call reverts or runs out of gas. An attacker could exploit this with a malicious token to block batch operations.

Cudos contest

Medium
Business logic

Protocol doesn’t handle fee on transfer tokens

The protocol's sendToCosmos function credits the full amount sent by the user, even if the token charges a transfer fee, so the contract's balance increases by less than the credited amount. An attacker could exploit this to drain other users' funds by repeatedly depositing and withdrawing with a fee-on-transfer token.

Cudos contest

Medium
Smart contracts

Missing check in the updateValset function

The updateValset function does not verify that the sum of the new validators' powers exceeds the threshold, which could allow a new validator set with insufficient total power to be accepted. This could cause the system to become stuck, preventing any operations including further valset updates, and potentially locking all tokens.

Cudos contest

Medium