2023-08-10 13:59:16 +00:00
|
|
|
include::../../../shared_content/secrets/description.adoc[]
|
|
|
|
|
|
|
|
== Why is this an issue?
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/rationale.adoc[]
|
|
|
|
|
|
|
|
=== What is the potential impact?
|
|
|
|
|
|
|
|
SendGrid keys are used for authentication and authorization when using the
|
|
|
|
SendGrid email delivery service.
|
|
|
|
|
2023-08-29 15:38:39 +02:00
|
|
|
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[]
|
2023-08-10 13:59:16 +00:00
|
|
|
|
|
|
|
== How to fix it
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/fix/revoke.adoc[]
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/fix/vault.adoc[]
|
|
|
|
|
|
|
|
=== Code examples
|
|
|
|
|
|
|
|
:example_secret: SG.Wjo5QoWqTmrFtMUf8m2T.CIY0Z24e5sJawIymiK_ZKC_7I15yDP0ur1yt0qtkR9Go
|
|
|
|
:example_name: sg_key
|
|
|
|
:example_env: SG_KEY
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/examples.adoc[]
|
|
|
|
|
|
|
|
//=== How does this work?
|
|
|
|
|
|
|
|
//=== Pitfalls
|
|
|
|
|
|
|
|
//=== Going the extra mile
|
|
|
|
|
|
|
|
== Resources
|
|
|
|
|
|
|
|
include::../../../shared_content/secrets/resources/standards.adoc[]
|
|
|
|
|
|
|
|
=== Documentation
|
|
|
|
|
|
|
|
* SendGrid Documentation - https://docs.sendgrid.com/ui/account-and-settings/api-keys[API Keys]
|
|
|
|
|
|
|
|
//=== Benchmarks
|