Advisory

GHSA-mp9m-g7qj-6vqr

Also known as: CVE-2020-15278, PYSEC-2020-267

Summary

Unauthorized privilege escalation in Mod module

Details

Impact
An unauthorized privilege escalation exploit has been discovered in the Mod module: this exploit allows Discord users with a high privilege level within the guild to bypass hierarchy checks when the application is in a specific condition that is beyond that user's control. By abusing this exploit, it's possible to perform destructive actions within the guild the user has high privileges in.

Patches
This exploit has been fixed on version & 3.4.1.

Workarounds
Unloading the Mod module with unload mod __or__, disabling the massban command with command disable global massban can render this exploit not accessible. We still highly recommend updating to 3.4.1 to completely patch this issue.

References

  • https://github.com/Cog-Creators/Red-DiscordBot/commit/726bfd38adfdfaef760412a68e01447b470f438b

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-10-27 20:30 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

red-discordbot

PyPI · All systems

Affected

  • introduced 0, fixed 3.4.1 (ecosystem)

Fixed versions

3.4.1

Fix

  • Fixed version 3.4.1
    pip install --upgrade red-discordbot==3.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences