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

    Threat Intelligence

    EPSS
    0.05% (17th 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 ID SNYK-PYTHON-REDDISCORDBOT-7444612
  • published 12 Jul 2024
  • disclosed 11 Jul 2024
  • credit Flame442

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
Expand this section

Snyk

Recommended
6.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    Low
  • Availability (SA)
    None