Skip to content

Unescaped arbitrary bot output using eval #57

Description

@gustavwilliam

When making the bot print triple backpacks (```) using the eval command, the output code block will be escaped, letting the user output arbitrary output outside of a code block after the backticks.

For the Rust Server's mods, report 114 contains my initial findings about this issue.

Severity

The severity of this security vulnerability is greatly reduced because the bot can't ping @everyone, @here or any roles that aren't pingable by the average user, but it's still worth keeping track of. Arbitrary user output is never a good thing.

It's also a warning to not give the bot these ping permissions in the future.

Example

Here's an example where I made the bot ping myself, after letting it error out. The ping for myself could easily be replaced with any number of users, or roles.

Screenshot 2022-11-12 at 14 37 25

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions