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 applicationsUpgrade commandkit
to version 1.2.0-rc.12 or higher.
commandkit is a Beginner friendly command & event handler for Discord.js
Affected versions of this package are vulnerable to Use of Incorrectly-Resolved Name or Reference due to the ctx.commandName
property exposing the alias used instead of the canonical command name in both middleware and command execution contexts. An attacker can bypass intended access controls or execute unauthorized commands by invoking commands through their aliases, potentially leading to incorrect permission checks or audit logging.
##Workaround
This vulnerability can be mitigated by using ctx.command.data.command.name
for permission validations or by including all command aliases in permission logic.