This repository has been archived by the owner on Jan 19, 2025. It is now read-only.
imsrybr0 - SafeApplyFuncOnAllActiveEpochEndingTopics processes two more pages than the desired max topic page #117
Labels
Medium
A Medium severity issue.
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
imsrybr0
Medium
SafeApplyFuncOnAllActiveEpochEndingTopics processes two more pages than the desired max topic page
Summary
SafeApplyFuncOnAllActiveEpochEndingTopics processes more pages than the desired max topic page.
Vulnerability Detail
The current loop iteration is strictly checked against the given max topic page after the processing is done.
This means that two more pages will be processed.
For example, if the max topic pages is 100 :
PoC
Impact
Processing topic rewards for more active topics than intended.
Code Snippet
SafeApplyFuncOnAllActiveEpochEndingTopics
Tool used
Manual Review
Recommendation
Check if the maxTopicPages is reached at the beginning of the loop
The text was updated successfully, but these errors were encountered: