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

Description#

A Mailgun API key has been found hard-coded in the codebase, which exposes sensitive credentials directly in source files. Storing API keys in code makes them accessible to anyone with code access, including unauthorized users.

Impact#

If an attacker obtains the Mailgun API key, they could send emails, access email logs, or abuse your Mailgun account, potentially leading to spam, data breaches, or financial loss. This could also compromise your application’s reputation and result in unauthorized use of your email infrastructure.