Skip to content

Sockpuppet sessions bypass rate limit and flood the leaderboard #22

Description

@royalpinto007

Problem

Rate limits key by mintable anon session (rateLimit(\attempt:${sessionId}`)`) and the leaderboard groups by session: exhausting one session's budget, minting a fresh session bypasses the limit, and two sessions cracking level-1 bank as separate rows.

Where

app/api/attempt/route.ts + lib/http.ts (anon mint) + lib/db.ts (GROUP BY session_id).

Acceptance

Add a failing test first minting a second session after exhausting the first, expecting allowed: false (or leaderboard dedup). Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions