AI Arena - AC000123's results

In AI Arena you train an AI character to battle in a platform fighting game. Imagine a cross between Pokémon and Super Smash Bros, but the characters are AIs, and you can train them to learn almost any skill in preparation for battle.

General Information

Platform: Code4rena

Start Date: 09/02/2024

Pot Size: $60,500 USDC

Total HM: 17

Participants: 283

Period: 12 days

Judge:

Id: 328

League: ETH

AI Arena

Findings Distribution

Researcher Performance

Rank: 221/283

Findings: 1

Award: $1.54

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2024-02-ai-arena/blob/cd1a0e6d1b40168657d1aaee8223dc050e15f8cc/src/RankedBattle.sol#L530-L532

Vulnerability details

Impact

In _getStakingFactor, when stakedAmount < 1 NRN, stakingFactor_ will always be 1. This allows a player to make positive points without any risk of loss by depositing minimal amount of $NRN(< 10**4 / bpsLostPerLoss wei)

Proof of Concept

If player deposits 1 wei and participate in a match, curStakeAtRisk will be always zero and therefore even if player lost the match, no staked fund will be at rist of loss. When player win the match, stakeAtRisk always be zero and points should be the same with eloFactor In the game economics, Penalty for Losing is one of the most important mechanism which can be destoryed by this issue.

Tools Used

Manual Review

We can make an minimum limit of staking.

Assessed type

Other

#0 - c4-pre-sort

2024-02-22T15:37:15Z

raymondfam marked the issue as insufficient quality report

#1 - c4-pre-sort

2024-02-22T15:37:24Z

raymondfam marked the issue as duplicate of #38

#2 - c4-judge

2024-03-07T02:58:22Z

HickupHH3 changed the severity to 3 (High Risk)

#3 - c4-judge

2024-03-07T03:13:31Z

HickupHH3 marked the issue as partial-75

#4 - c4-judge

2024-03-07T03:27:32Z

HickupHH3 marked the issue as partial-50

#5 - c4-judge

2024-03-07T03:27:47Z

HickupHH3 marked the issue as partial-75

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter