2023-08-29 15:38:39 +02:00
|
|
|
include::../../../shared_content/secrets/description.adoc[]
|
|
|
|
|
|
|
|
== Why is this an issue?
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/rationale.adoc[]
|
|
|
|
|
|
|
|
=== What is the potential impact?
|
|
|
|
|
2023-08-31 15:45:47 +02:00
|
|
|
Mailgun API keys provide complete control over the Mailgun account and allow
|
2023-08-29 15:38:39 +02:00
|
|
|
sending bulk emails.
|
|
|
|
|
|
|
|
Below are some real-world scenarios that illustrate some impacts of an attacker
|
|
|
|
exploiting the secret.
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/impact/personal_data_compromise.adoc[]
|
|
|
|
|
|
|
|
:secret_type: secret
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/impact/phishing.adoc[]
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/impact/malware_distribution.adoc[]
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/impact/suspicious_activities_termination.adoc[]
|
|
|
|
|
|
|
|
== How to fix it
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/fix/revoke.adoc[]
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/fix/vault.adoc[]
|
|
|
|
|
|
|
|
=== Code examples
|
|
|
|
|
2023-09-22 14:17:57 +02:00
|
|
|
:example_secret: key-9392bf4edd483c111748f422750442fe
|
2023-08-29 15:38:39 +02:00
|
|
|
:example_name: mailgun_key
|
|
|
|
:example_env: MAILGUN_KEY
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/examples.adoc[]
|
|
|
|
|
|
|
|
//=== How does this work?
|
|
|
|
|
|
|
|
//=== Pitfalls
|
|
|
|
|
|
|
|
//=== Going the extra mile
|
|
|
|
|
|
|
|
== Resources
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/resources/standards.adoc[]
|
|
|
|
|
|
|
|
//=== Benchmarks
|
2023-08-31 15:45:11 +02:00
|
|
|
|