Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Flaxen Dove - Malicious actor can reparticipate in FCFS #659

Open
sherlock-admin3 opened this issue Feb 19, 2025 · 0 comments
Open

Big Flaxen Dove - Malicious actor can reparticipate in FCFS #659

sherlock-admin3 opened this issue Feb 19, 2025 · 0 comments

Comments

@sherlock-admin3
Copy link

Big Flaxen Dove

High

Malicious actor can reparticipate in FCFS

Summary

Malicious actor can reparticipate in FCFS.

Root cause

https://github.com/sherlock-audit/2025-02-rova/blob/fe68ceb7d90693f9be5c7fb94dde130da8d60d9e/rova-contracts/src/Launch.sol#L246

        if (userTokenAmount > 0) {
            if (!settings.finalizesAtParticipation) {
                revert MaxUserParticipationsReached(request.launchGroupId, request.userId);
            }
        }

PoC

if (!settings.finalizesAtParticipation) {revert ..}

works incorrectly to allow user participate again in FCFS Launch Groups.

Mitigation

Consider to change validation to:

if (settings.finalizesAtParticipation) {revert ..}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant