Property
Languageregex
Severitylow
CWECWE-798: Use of Hard-coded Credentials
OWASPA07:2021 - Identification and Authentication Failures
Confidence LevelLow
Impact LevelMedium
Likelihood LevelLow

Description#

A Discord client secret (API credential) is hard-coded directly in the source code. Storing credentials in code makes them easy to accidentally expose in version control or public repositories.

Impact#

If the secret is leaked, attackers can access your Discord application as if they were you, potentially resulting in data theft, message spoofing, or abuse of your Discord bot. This can lead to compromised accounts, reputation damage, or unauthorized actions within Discord.