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

Description#

Slack user tokens are hard-coded in the source code, exposing sensitive credentials within the repository. Storing secrets directly in code makes them easy to leak if the code is shared or becomes public.

Impact#

If an attacker obtains these tokens, they could gain unauthorized access to Slack accounts or workspaces, read or send messages, or perform actions as the compromised user. This could lead to data theft, account takeover, or abuse of your organization’s Slack environment.