The function to get the random amount of APT for the slide is based on time mod on 401, that can easily guessed by an attacker
When knowing which occurrences on time gives the maximum
Likelihood:
If the attacker knows when in time the owner will register the users, can manipulate the request to maximize the chances to get the highest reward
If the owner is aware and wants to rig the system
Impact:
It defies the main purpose of randomnes by giving the exact amount on rewards the user will get based on the time of registration
A quick query with AI will list all the iterations of the epoch in milliseconds of the day where you can get the 500 APT
The first 4 ocurrencies for 29 of August that will get the 400
Timestamp: 1756425600000110
Time (UTC): 2025-08-29 00:00:00.000110
Timestamp: 1756425600000511
Time (UTC): 2025-08-29 00:00:00.000511
Timestamp: 1756425600000912
Time (UTC): 2025-08-29 00:00:00.000912
Timestamp: 1756425600001313
Time (UTC): 2025-08-29 00:00:00.001313
Use the random generator from aptos framework for randomize the number between 0 and 400
The `get_random_slice` function should only be called by the owner via the `register_pizza_lover` function. Also, the `owner` is trusted and will not choose a specific time for a new user to register. Therefore, I disagree with the claim of most reports in this group that an attacker can manipulate the random number of pizza slices. But I agree with the root cause of the reports in this group, that the random distribution is not completely random.
The `get_random_slice` function should only be called by the owner via the `register_pizza_lover` function. Also, the `owner` is trusted and will not choose a specific time for a new user to register. Therefore, I disagree with the claim of most reports in this group that an attacker can manipulate the random number of pizza slices. But I agree with the root cause of the reports in this group, that the random distribution is not completely random.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.