Skip to content

CTF-117: Challenge Solutions

Statement

The system should support attaching an official solution or writeup to each challenge. Solutions shall be visible only to organizers during an active event. Organizers shall be able to reveal solutions to participants after the event ends. Solutions shall support rich text content including code blocks and images.

Rationale

Solutions serve as training material after events, participants learn how challenges were meant to be solved, which is critical for Shifter's training-focused use case. Without solutions, the educational value of completed events is lost. Organizers need a way to document the intended solve path per challenge and reveal it after the event ends. (CTFd supports a similar Solution tab per challenge.)

Traceability

  • IMPLEMENTS → CODE_FILE shifter/shifter_platform/ctf/models/ (CTFChallenge.solution TextField)
  • IMPLEMENTS → CODE_FILE shifter/shifter_platform/ctf/services/challenge/ (solution in _CHALLENGE_MUTABLE_FIELDS for create/update)
  • IMPLEMENTS → GITHUB_ISSUE Brad-Edwards/bigrae#551 (CTF-117: Challenge Solutions)