Incorrect Authorization Affecting red-discordbot package, versions [3.5.0,3.5.10)
Threat Intelligence
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
Introduced: 11 Jul 2024
CVE-2024-39905 Open this link in a new tabHow 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.