Incorrect Authorization Affecting red-discordbot package, versions [3.5.0,3.5.10)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-REDDISCORDBOT-7444612
  • published12 Jul 2024
  • disclosed11 Jul 2024
  • creditFlame442

Introduced: 11 Jul 2024

CVE-2024-39905  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade Red-DiscordBot to version 3.5.10 or higher.

Overview

Red-DiscordBot is an A highly customisable Discord bot

Affected versions of this package are vulnerable to Incorrect Authorization through the commands API. An attacker can bypass authorization checks by exploiting the lack of additional permission controls in third-party cogs that use the @commands.can_manage_channel() permission check.

Note

The following command permission checks are unaffected:

@commands.mod_or_can_manage_channel()

@commands.admin_or_can_manage_channel()

@commands.guildowner_or_can_manage_channel()

Workaround

This vulnerability can be mitigated by unloading any cog using the @commands.can_manage_channel() command permission check until an upgrade to a patched version can be performed.

CVSS Scores

version 4.0
version 3.1