Skip to content

Code4rena

Arcade.xyz

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

disclosed reports
12
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Arcade.xyz on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Arcade.xyz chose to make public.

Business logic

ArcadeTreasury.sol allowance may be overriden

The ArcadeTreasury contract uses ERC20 approve directly, so multiple approval functions overwrite each other's allowances for the same spender. A malicious GSC_CORE_VOTING_ROLE could reset a large allowance to a tiny amount, disrupting intended spending.

Arcade.xyz

Medium
Smart contracts

M-11 Use _safeMint instead of _mint for ERC721

The contract uses `_mint` instead of `_safeMint` for ERC721 tokens, which does not check if the recipient is a contract that can handle ERC721 tokens. An attacker could mint tokens to a contract that cannot receive them, potentially locking the tokens.

Arcade.xyz

Medium
Business logic

M-12 Unsafe ERC20 operations

The contracts call ERC20 transferFrom directly, which fails for tokens like USDT that do not return a boolean. This causes deposits to revert for those tokens.

Arcade.xyz

Medium
Smart contracts

M-09 Approve zero first

The treasury contract calls approve() directly on tokens without first resetting an existing non-zero allowance to zero. For tokens such as USDT that revert when changing a non-zero allowance, the approval call would fail, so the treasury could not update that spender's allowance.

Arcade.xyz

Medium
Business logic

Approved gscApprove allowance to an address may not able to be decreased

The gscApprove function decreases the internal gscAllowance by the full approved amount each time, so if a spender already has an allowance, calling gscApprove again to reduce that allowance causes an underflow and reverts. An attacker could not directly exploit this, but it prevents the GSC_CORE_VOTING_ROLE from decreasing an approved allowance.

Arcade.xyz

Medium
Business logic

DAY_IN_BLOCKS is incorrect

The contract used a constant for the number of blocks per day based on a 13.3-second block time, but after Ethereum's move to proof of stake, block times are fixed at 12 seconds. This caused lock and voting durations to expire earlier than intended, by about 7 and 11.7 hours respectively.

Arcade.xyz

Medium
DoS

If someone becomes a GSC member, they may become un-kickable forever

A GSC member could make themselves impossible to remove by repeatedly changing their delegate across thousands of blocks, which fills their voting-power history. When someone tries to kick them, the vault's query function tries to clear all those old entries and runs out of gas, so the removal transaction always reverts.

Arcade.xyz

Medium
Business logic

Proposal vote power can be easily manipulated

The voting power for a proposal is calculated using the token balance at a single block before the proposal was created, so an attacker could take a large loan for that one block and use the borrowed tokens to vote. This could let them pass arbitrary proposals with minimal risk.

Arcade.xyz

Medium
Business logic

M-10 The surplus ether is not returned

The mint function is payable and only checks that the sent ether is at least the mint price, so any surplus is kept by the contract rather than returned. An attacker or user could lose ether by overpaying.

Arcade.xyz

Medium