Beginner FriendlyFoundryDeFi
100 EXP
View results
Submission Details
Severity: high
Valid

MISSING POINT REDUCTION ON UNSTAKING ENABLES INFINITE AIRDROP REWARD EXPLOITATION

Summary

A deficiency has been identified in the system for accumulating points based on deposited ETH. While users receive points when they deposit ETH, the system fails to reduce points when they withdraw their funds.

Vulnerability Details

The backend system ( main.js ) responds to the deposit event and allocates points to users, but there is no mechanism for decreasing points during fund withdrawal. Specifically, the main JavaScript file lacks a listener for the withdrawal event that should reduce the user's points.

Impact

Given that there are no penalties or waiting periods for fund withdrawal, this behavior can be repeated indefinitely, allowing users to gain an unjustified advantage for future rewards (token distributions,airdrop).

Tools Used

Manual code analysis

Recommendations

Implement a listener for the withdrawal event in the backend system. When a user withdraws ETH, decrease their points proportionally to the withdrawn amount. This ensures that users retain points only for ETH that remains deposited.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Steaking server is not taking unstakes into account

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.