juice-shop / juice-shop-ctf

Tool to export Juice Shop challenges and hints in data format compatible with CTFd, RootTheBox or FBCTF
http://owasp-juice.shop
MIT License
410 stars 116 forks source link

[๐Ÿš€] Support multiple flags #129

Closed mal-tee closed 8 months ago

mal-tee commented 1 year ago

:rocket: Feature request

Description

In a ctf setting it can be useful to have multiple flag strings for a task --> every team/instance can get its own unique flag.

Solution ideas

Overload the configuration option ctfKey.

github-actions[bot] commented 1 year ago

Thanks a lot for opening your first issue with us! ๐Ÿงก We'll get back to you shortly! โณ If it was a Support Request, please check our extensive CTF manual first. Also, please consider asking on the community chat next time! ๐Ÿ’ฌ

bkimminich commented 1 year ago

Most straightforward solution might be to accept a comma separated string or even JSON array as ctfKey and then splitting it and looping over them when creating flags per challenge.

bkimminich commented 1 year ago

every team/instance can get its own unique flag

Sidenote: Binding flags to users or teams wouldn't be possible, though, as we don't know what teams will exist on the Score Server, so unless you somehow solve this on the Score Server itself, teams could always submit any of the valid flags, no matter which ctfKey was used to create the flag.