pereztr5 / cyboard

Scoring engine for cyber defense competitions
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

Web Ctf Config #30

Closed tbutts closed 6 years ago

tbutts commented 6 years ago

This PR adds two components for managing CTF configuration. Challenges can be added for blueteams to score against by uploading plain-text CSV data. Challenges can also be modified or deleted by editing a interactive table, much like with users.

There's a good deal of validation and feedback, so it's pretty easy for anyone to do at this point, provided they are an admin or blackteam member. The server-side validation will prevent users from editing flags outside of their control.

The JSON REST API endpoints for ctf configuration - /ctf/flags - all work as you'd expect, supporting GET, POST, PUT, and DELETE.

Closes #9