Cloud-CV / Cloud-CV/EvalAI

Challenge creation checks only host team membership, not status or permissions

Open
#4,859 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
984
Avg merge
2h 54m
Merged PRs (30d)
14

Description

Hi maintainers,

I noticed that challenge creation currently checks only host team membership,
not host status or permissions.
While tracing this flow, I also observed that the host team listing endpoint
returns all teams associated with a user without filtering by status or
permissions. Because of this, it seems possible for a user with a non-ACCEPTED
status or non-ADMIN/WRITE permission to access a host team ID and pass the
membership check.
Is this behavior intentional, or should permission checks (e.g. status=ACCEPTED
and permissions in [ADMIN, WRITE]) be enforced at the API level? I might be
missing some context, but happy to work on this if a backend-side check is
desired.

Contributor guide

Open the contributing guide

Research direction

Trace the challenge creation API flow and the host team listing endpoint described in the issue. Check how host team membership currently handles status and permissions, then verify whether non-ACCEPTED members and non-ADMIN/WRITE permissions can pass the check. Done means the API behavior consistently enforces the intended status and permission rules, with tests covering both endpoints.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, authorization, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.