AI Arena - desaperh'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: 273/283

Findings: 1

Award: $0.04

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2024-02-ai-arena/blob/cd1a0e6d1b40168657d1aaee8223dc050e15f8cc/src/FighterFarm.sol#L379

Vulnerability details

Impact

Users can determinate how many rerolls is sufficient to get better fighters depending on the wallet adresses they own and transfer to the corresponding wallet.

Proof of Concept

The bad source randomness is located here : uint256 dna = uint256(keccak256(abi.encode(msg.sender, tokenId, numRerolls[tokenId])));

Users can determinate the number of rerolls needed to get a certain dna value for all theirs wallets adresses and chose the right one.

Tools Used

Manual Review

Use a different source of randomness ( Chainlink VRF).

Assessed type

Other

#0 - c4-pre-sort

2024-02-24T01:37:26Z

raymondfam marked the issue as sufficient quality report

#1 - c4-pre-sort

2024-02-24T01:37:34Z

raymondfam marked the issue as duplicate of #53

#2 - c4-judge

2024-03-06T03:49:26Z

HickupHH3 changed the severity to 3 (High Risk)

#3 - c4-judge

2024-03-06T03:49:53Z

HickupHH3 marked the issue as satisfactory

#4 - c4-judge

2024-03-22T04:21:01Z

HickupHH3 marked the issue as duplicate of #376

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