Skip to content

Handle non-integer task ids on the leaderboard page - #412

Merged
danlamanna merged 1 commit into
masterfrom
fix-leaderboard-invalid-task-id
Oct 29, 2026
Merged

danlamanna merged 1 commit into
masterfrom
fix-leaderboard-invalid-task-id

Conversation

@danlamanna

Copy link
Copy Markdown
Member

The task query parameter was passed straight to a primary key lookup, so any non-numeric value raised an unhandled ValueError. Vulnerability scanners hit this constantly. Treat a non-integer value the same as a missing one and fall back to the first task.

The task query parameter was passed straight to a primary key lookup,
so any non-numeric value raised an unhandled ValueError. Vulnerability
scanners hit this constantly. Treat a non-integer value the same as a
missing one and fall back to the first task.
@danlamanna
danlamanna enabled auto-merge October 29, 2026 12:48
@danlamanna
danlamanna disabled auto-merge October 29, 2026 12:56
@danlamanna
danlamanna merged commit 1791e59 into master Oct 29, 2026
1 check passed
@danlamanna
danlamanna deleted the fix-leaderboard-invalid-task-id branch October 29, 2026 12:56
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

Successfully merging this pull request may close these issues.

1 participant