Closed c4-bot-10 closed 8 months ago
raymondfam marked the issue as sufficient quality report
raymondfam marked the issue as duplicate of #1641
raymondfam marked the issue as not a duplicate
raymondfam marked the issue as duplicate of #833
Just keep playing before the round ends trying to win and reclaim some stakeatrisk NRN risk free.
HickupHH3 marked the issue as duplicate of #1641
HickupHH3 marked the issue as partial-25
Lines of code
https://github.com/code-423n4/2024-02-ai-arena/blob/cd1a0e6d1b40168657d1aaee8223dc050e15f8cc/src/RankedBattle.sol#L270-L290
Vulnerability details
Impact
Players face an unintended gameplay interruption as their fighter is kept locked when all their stake goes at risk, with the only resolution being a counterintuitive zero-value unstake action that sidelines them for the remainder of the round.
Proof of Concept
Initial Gameplay Scenario:
Complete Loss of Stake:
Discovery of Lock Mechanism:
Forced Unstaking for Unlocking:
Involuntary Downtime:
Strategic Implications and Frustration:
Coded Poc
Output
Code
Tools Used
Manual review.
Recommended Mitigation Steps
Consider unlocking the fighter whenever the staker loses all the stake at risk.
Assessed type
Other