code-423n4 / 2023-08-pooltogether-mitigation-findings

0 stars 0 forks source link

M-15 MitigationConfirmed #93

Open code423n4 opened 1 year ago

code423n4 commented 1 year ago

Lines of code

Vulnerability details

Original Issue

M-15 - Tiers can be mantained active to give unfair advantage to user through DoS #

Details

The original issue was caused because users could maintain Tiers active when they should've been closed.

Mitigation

The mitigation simplifies the tier expansion algorithm and also unify the canary and normal tiers by assigning an equal amount of shares to all the Tiers. Thanks to unification, the largestTierClaimed variable when claiming prizes, thus, the attack vector is no longer possible, attackers can't keep active a Tier.

Conclusion

The implemented mitigation solves the original issue.

c4-judge commented 1 year ago

Picodes marked the issue as satisfactory

c4-judge commented 1 year ago

Picodes marked the issue as confirmed for report