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

Description#

A DigitalOcean refresh token (a type of secret credential) is hard-coded directly into the source code. Storing credentials in code makes them easily accessible to anyone with code access, increasing the risk of accidental leaks.

Impact#

If a hard-coded refresh token is exposed, attackers could use it to gain unauthorized access to your DigitalOcean account, potentially allowing them to view, modify, or delete resources. This can lead to data breaches, resource compromise, and financial loss.