Headline
CVE-2021-29465: Remote file overwrite on discord-recon can result in DoS and Remote Code Execution
Discord-Recon is a bot for the Discord chat service. Versions of Discord-Recon 0.0.3 and prior contain a vulnerability in which a remote attacker is able to overwrite any file on the system with the command results. This can result in remote code execution when the user overwrite important files on the system. As a workaround, bot maintainers can edit their setting.py
file then add <
and >
into the RCE
variable inside of it to fix the issue without an update. The vulnerability is patched in version 0.0.4.
Impact
- Remote attacker is able to overwrite any file on the system with the command results. can result in remote code execution when the user overwrite important files on the system.
Patches
- This issue has been fixed by adding < and > into the RCE blacklist
Workarounds
- Edit your setting.py file then add < and > into the RCE variable inside of it to fix this issue without an update.
References
- #14
Credits:
- All the credits for finding and disclosing this issue goes to @0xWise64
For more information
If you have any questions or comments about this advisory:
- Contact Kerolos Atef Saber at Twitter
- Email us at [email protected]