Skip to content

Code4rena

Neo Tokyo contest

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

disclosed reports
2
most reported class
Business logic
bug classes found
2
first disclosure
2023
Find Neo Tokyo contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Neo Tokyo contest chose to make public.

Business logic

Updating a pool’s total points doesn’t affect existing stake positions for rewards calculation

The staking contract calculates rewards using the current total points of the pool, not the total points at the time each stake was made. This means that when new stakes increase total points, existing stakers earn fewer rewards, and when stakes are withdrawn, remaining stakers earn more; an attacker can also deliberately claim rewards for another user at a moment when total points are high to reduce that user's rewards.

Neo Tokyo contest

High
Smart contracts

Underflow of lpPosition.points during withdrawLP causes huge reward minting

A rounding error in the staking contract's points calculation allows an attacker to underflow the points value when withdrawing LP tokens, which then causes the reward calculation to mint an enormous amount of BYTES tokens. The attacker can withdraw and then claim rewards to receive more than 1e64 BYTES.

Neo Tokyo contest

High