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

Users cant solve challenge after changing to user mode #2522

Closed
HaraldMR opened this issue Apr 10, 2024 · 3 comments · Fixed by #2539
Closed

Users cant solve challenge after changing to user mode #2522

HaraldMR opened this issue Apr 10, 2024 · 3 comments · Fixed by #2539
Milestone

Comments

@HaraldMR
Copy link

HaraldMR commented Apr 10, 2024

Environment:

  • CTFd Version/Commit: 3.7.0
  • Operating System: Ubuntu 22.04.3 LTS
  • Web Browser and Version: Bug is occurs in Newest Chrome, Chromium and Firefox. Not tested more.

What happened?
Some of our users was not able to submit correct flag to solve the challenge. This occurred for after we swapped to user mode for one of our events, our ctfd instance is usually in Team mode. We narrowed it down to being because the teams still exist, making some users unable to get a solve because they are in a "hidden" team where one of their team members already had solved the challenge.

What did you expect to happen?
Expected to be able to swap to user mode, and be able to have all users solve all challenges, so we dont have to create new teams and users every time we would like to swap mode.

How to reproduce your issue
Create a few users in the same team.
Swap to user mode.
Have one of the users solve a challenge.
Try to solve the same challenge with one of the other users.

Any associated stack traces or error logs
n/a

@ColdHeat ColdHeat added this to the 3.8 milestone Apr 16, 2024
@ColdHeat
Copy link
Member

Hmm I thought that when switching user mode via the Admin Panel it would remove users from their teams but it appears maybe not.

How did you switch user mode? Via the Admin Panel?

@ColdHeat
Copy link
Member

I see that in the original commit this just deleted submissions https://github.com/CTFd/CTFd/pull/1956/files. This would work in moving from users to teams but it doesn't work the other way around. When we switch teams to users we need to remove all users from teams.

@HaraldMR
Copy link
Author

How did you switch user mode? Via the Admin Panel?

Switched user mode via the admin panel, yes.

When we switch teams to users we need to remove all users from teams.

So it is an issue with the way the teams and users are set up in relation to eachother, if im understanding this correctly?

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 a pull request may close this issue.

2 participants