Skip to content

Intigriti 1337UP CTF 2024: Triage Bot v2

TL;DR

  • Bot restricts !read_report to users with the triage role.
  • Public Intigriti Discord does not allow self-assigning this role.
  • Bot can be invited to a personal Discord server.
  • Assign yourself the triage role locally.
  • !read_report 0 leaks the flag.

Challenge Description

Check out our new and improved Triage Bot!

The 2023 1337UP LIVE CTF featured a TriageBot challenge that used an LLM (ChatGPT) to triage reports. Players had to force the bot to leak it's initial prompt (against it's instructions). If you missed it, check out the video walkthrough.

Solution

This years challenge is a lot easier than last years, partially because common feedback in both of the previous CTFs was "not enough beginner challenges". Another reason for the simplicity of this challenge solution is we were concerned about the security of our discord server and opted to play it safe 😂

Here's the help menu for the discord bot.

Discord bot help menu showing available commands

According to the !news command, there's a new !read_report command.

Bot news message announcing new read_report command

However, we lack the permissions to use it 🤔

Permission denied when using read_report without required role

Let's try the rest of the commands.

Output from basic Discord bot commands

Additional responses from bot commands

AI generated images produced by the bot

Not much functionality, apart from the cool AI generated images 😎

We need the triage role! We won't be able to give ourselves that role in the intigriti discord server. So we need to invite the bot to our own server, where we can assign ourselves the role.

Inviting the bot to a personal Discord server

Now, we can read reports.

Successful use of read_report command after assigning role

It appears to give a random one each time. What if we specify an ID?

Reading a specific report by ID

Interesting! How about ID 0?

Report output revealing the challenge flag

We have the flag!

Flag: INTIGRITI{4n07h3r_y34r_4n07h3r_7r1463_b07}